home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1996-07-20 | 22.8 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: ICMiscSubs.p
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| ZX81 Sinclair BASIC (image/sinclairBASIC)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Applause Picture (image/applausePicture)
| ext
| Unsupported |
1%
| dexvert
| bsdiff patch (other/bsdiffPatch)
| ext
| Unsupported |
1%
| dexvert
| imgdiff patch (other/imgdiffPatch)
| ext
| Unsupported |
1%
| dexvert
| MATLAB p-code (other/matlabPCode)
| ext
| Unsupported |
1%
| dexvert
| WSUS Patch Storage File (other/wsusPatchStorageFile)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Sat Jul 20 15:56:18 1996, modified Sat Jul 20 15:56:18 1996, creator 'CWIE', type ASCII, 22624 bytes "ICMiscSubs.p" , at 0x58e0 410 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 49 43 4d 69 73 63 | 53 75 62 73 2e 70 00 00 |..ICMisc|Subs.p..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 58 60 00 | 00 01 9a ae 16 ea 62 ae |.....X`.|......b.|
|00000060| 16 ea 62 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..b.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 0c 4e 00 00 |........|.....N..|
|00000080| 75 6e 69 74 20 49 43 4d | 69 73 63 53 75 62 73 3b |unit ICM|iscSubs;|
|00000090| 0d 0d 69 6e 74 65 72 66 | 61 63 65 0d 0d 09 75 73 |..interf|ace...us|
|000000a0| 65 73 0d 09 09 46 69 6c | 65 73 2c 20 57 69 6e 64 |es...Fil|es, Wind|
|000000b0| 6f 77 73 2c 20 4c 69 73 | 74 73 3b 0d 09 09 0d 09 |ows, Lis|ts;.....|
|000000c0| 63 6f 6e 73 74 0d 09 09 | 6e 75 6c 43 68 61 72 20 |const...|nulChar |
|000000d0| 3d 20 30 3b 0d 09 09 68 | 6f 6d 65 43 68 61 72 20 |= 0;...h|omeChar |
|000000e0| 3d 20 24 30 31 3b 0d 09 | 09 65 6e 74 65 72 43 68 |= $01;..|.enterCh|
|000000f0| 61 72 20 3d 20 24 30 33 | 3b 0d 09 09 65 6e 64 43 |ar = $03|;...endC|
|00000100| 68 61 72 20 3d 20 24 30 | 34 3b 0d 09 09 68 65 6c |har = $0|4;...hel|
|00000110| 70 43 68 61 72 20 3d 20 | 24 30 35 3b 0d 09 09 62 |pChar = |$05;...b|
|00000120| 61 63 6b 53 70 61 63 65 | 43 68 61 72 20 3d 20 24 |ackSpace|Char = $|
|00000130| 30 38 3b 0d 09 09 74 61 | 62 43 68 61 72 20 3d 20 |08;...ta|bChar = |
|00000140| 24 30 39 3b 0d 09 09 6c | 66 43 68 61 72 20 3d 20 |$09;...l|fChar = |
|00000150| 24 30 41 3b 0d 09 09 70 | 61 67 65 55 70 43 68 61 |$0A;...p|ageUpCha|
|00000160| 72 20 3d 20 24 30 62 3b | 0d 09 09 70 61 67 65 44 |r = $0b;|...pageD|
|00000170| 6f 77 6e 43 68 61 72 20 | 3d 20 24 30 63 3b 0d 09 |ownChar |= $0c;..|
|00000180| 09 63 72 43 68 61 72 20 | 3d 20 24 30 44 3b 0d 09 |.crChar |= $0D;..|
|00000190| 09 65 73 63 43 68 61 72 | 20 3d 20 24 31 62 3b 0d |.escChar| = $1b;.|
|000001a0| 09 09 65 73 63 4b 65 79 | 20 3d 20 24 33 35 3b 0d |..escKey| = $35;.|
|000001b0| 09 09 63 6c 65 61 72 43 | 68 61 72 20 3d 20 24 31 |..clearC|har = $1|
|000001c0| 62 3b 0d 09 09 63 6c 65 | 61 72 4b 65 79 20 3d 20 |b;...cle|arKey = |
|000001d0| 24 34 37 3b 0d 09 09 6c | 65 66 74 41 72 72 6f 77 |$47;...l|eftArrow|
|000001e0| 43 68 61 72 20 3d 20 24 | 31 63 3b 0d 09 09 72 69 |Char = $|1c;...ri|
|000001f0| 67 68 74 41 72 72 6f 77 | 43 68 61 72 20 3d 20 24 |ghtArrow|Char = $|
|00000200| 31 64 3b 0d 09 09 75 70 | 41 72 72 6f 77 43 68 61 |1d;...up|ArrowCha|
|00000210| 72 20 3d 20 24 31 65 3b | 0d 09 09 64 6f 77 6e 41 |r = $1e;|...downA|
|00000220| 72 72 6f 77 43 68 61 72 | 20 3d 20 24 31 66 3b 0d |rrowChar| = $1f;.|
|00000230| 09 09 73 70 61 63 65 43 | 68 61 72 20 3d 20 24 32 |..spaceC|har = $2|
|00000240| 30 3b 0d 09 09 64 65 6c | 43 68 61 72 20 3d 20 24 |0;...del|Char = $|
|00000250| 37 66 3b 0d 09 09 62 75 | 6c 6c 65 74 43 68 61 72 |7f;...bu|lletChar|
|00000260| 20 3d 20 24 61 35 3b 0d | 09 09 75 6e 64 6f 4b 65 | = $a5;.|..undoKe|
|00000270| 79 20 3d 20 24 37 61 3b | 0d 09 09 63 75 74 4b 65 |y = $7a;|...cutKe|
|00000280| 79 20 3d 20 24 37 38 3b | 0d 09 09 63 6f 70 79 4b |y = $78;|...copyK|
|00000290| 65 79 20 3d 20 24 36 33 | 3b 0d 09 09 70 61 73 74 |ey = $63|;...past|
|000002a0| 65 4b 65 79 20 3d 20 24 | 37 36 3b 0d 0d 09 63 6f |eKey = $|76;...co|
|000002b0| 6e 73 74 0d 09 09 6b 52 | 65 74 75 72 6e 4b 65 79 |nst...kR|eturnKey|
|000002c0| 43 6f 64 65 20 3d 20 33 | 36 3b 0d 09 09 6b 54 61 |Code = 3|6;...kTa|
|000002d0| 62 4b 65 79 43 6f 64 65 | 20 3d 20 34 38 3b 0d 09 |bKeyCode| = 48;..|
|000002e0| 09 6b 53 70 61 63 65 4b | 65 79 43 6f 64 65 20 3d |.kSpaceK|eyCode =|
|000002f0| 20 34 39 3b 0d 09 09 4b | 44 65 6c 65 74 65 4b 65 | 49;...K|DeleteKe|
|00000300| 79 43 6f 64 65 20 3d 20 | 35 31 3b 0d 09 09 6b 45 |yCode = |51;...kE|
|00000310| 6e 74 65 72 4b 65 79 43 | 6f 64 65 20 3d 20 35 32 |nterKeyC|ode = 52|
|00000320| 3b 0d 09 09 6b 43 6f 6d | 6d 61 6e 64 4b 65 79 43 |;...kCom|mandKeyC|
|00000330| 6f 64 65 20 3d 20 35 35 | 3b 0d 09 09 6b 53 68 69 |ode = 55|;...kShi|
|00000340| 66 74 4b 65 79 43 6f 64 | 65 20 3d 20 35 36 3b 0d |ftKeyCod|e = 56;.|
|00000350| 09 09 6b 43 61 70 73 4c | 6f 63 6b 4b 65 79 43 6f |..kCapsL|ockKeyCo|
|00000360| 64 65 20 3d 20 35 37 3b | 0d 09 09 6b 4f 70 74 69 |de = 57;|...kOpti|
|00000370| 6f 6e 4b 65 79 43 6f 64 | 65 20 3d 20 35 38 3b 0d |onKeyCod|e = 58;.|
|00000380| 09 09 6b 43 6c 65 61 72 | 4b 65 79 43 6f 64 65 20 |..kClear|KeyCode |
|00000390| 3d 20 37 31 3b 0d 0d 09 | 63 6f 6e 73 74 0d 09 09 |= 71;...|const...|
|000003a0| 6f 77 6e 65 72 5f 69 64 | 20 3d 20 2d 31 36 30 39 |owner_id| = -1609|
|000003b0| 36 3b 0d 09 09 6d 61 63 | 68 69 6e 65 5f 69 64 20 |6;...mac|hine_id |
|000003c0| 3d 20 2d 31 36 34 31 33 | 3b 0d 0d 09 74 79 70 65 |= -16413|;...type|
|000003d0| 0d 09 09 28 2a 20 41 20 | 64 61 74 61 20 73 74 72 |...(* A |data str|
|000003e0| 75 63 74 75 72 65 20 66 | 6f 72 20 61 64 64 72 65 |ucture f|or addre|
|000003f0| 73 73 65 73 20 6d 65 6d | 6f 72 79 20 61 73 20 62 |sses mem|ory as b|
|00000400| 79 74 65 73 2e 20 2a 29 | 0d 09 09 42 69 67 42 75 |ytes. *)|...BigBu|
|00000410| 66 66 65 72 20 3d 20 70 | 61 63 6b 65 64 20 61 72 |ffer = p|acked ar|
|00000420| 72 61 79 20 5b 30 2e 2e | 24 30 46 46 46 46 46 46 |ray [0..|$0FFFFFF|
|00000430| 5d 20 6f 66 20 42 79 74 | 65 3b 0d 09 09 42 69 67 |] of Byt|e;...Big|
|00000440| 42 75 66 66 65 72 50 74 | 72 20 3d 20 5e 42 69 67 |BufferPt|r = ^Big|
|00000450| 42 75 66 66 65 72 3b 0d | 09 09 42 69 67 42 75 66 |Buffer;.|..BigBuf|
|00000460| 66 65 72 48 61 6e 64 6c | 65 20 3d 20 5e 42 69 67 |ferHandl|e = ^Big|
|00000470| 42 75 66 66 65 72 50 74 | 72 3b 0d 0d 09 70 72 6f |BufferPt|r;...pro|
|00000480| 63 65 64 75 72 65 20 49 | 6e 69 74 4d 69 73 63 53 |cedure I|nitMiscS|
|00000490| 75 62 73 3b 0d 0d 09 66 | 75 6e 63 74 69 6f 6e 20 |ubs;...f|unction |
|000004a0| 47 65 74 56 6f 6c 49 6e | 66 6f 20 28 76 61 72 20 |GetVolIn|fo (var |
|000004b0| 6e 61 6d 65 3a 20 73 74 | 72 36 33 3b 20 76 61 72 |name: st|r63; var|
|000004c0| 20 76 72 6e 3a 20 69 6e | 74 65 67 65 72 3b 20 69 | vrn: in|teger; i|
|000004d0| 6e 64 65 78 3a 20 69 6e | 74 65 67 65 72 3b 20 76 |ndex: in|teger; v|
|000004e0| 61 72 20 43 72 44 61 74 | 65 3a 20 6c 6f 6e 67 49 |ar CrDat|e: longI|
|000004f0| 6e 74 29 3a 20 4f 53 45 | 72 72 3b 0d 09 66 75 6e |nt): OSE|rr;..fun|
|00000500| 63 74 69 6f 6e 20 4d 79 | 47 65 74 41 50 50 4c 20 |ction My|GetAPPL |
|00000510| 28 73 69 67 3a 20 4f 53 | 54 79 70 65 3b 20 76 61 |(sig: OS|Type; va|
|00000520| 72 20 66 73 3a 20 46 53 | 53 70 65 63 29 3a 20 4f |r fs: FS|Spec): O|
|00000530| 53 45 72 72 3b 0d 09 66 | 75 6e 63 74 69 6f 6e 20 |SErr;..f|unction |
|00000540| 46 53 70 47 65 74 43 61 | 74 49 6e 66 6f 20 28 76 |FSpGetCa|tInfo (v|
|00000550| 61 72 20 66 73 3a 20 46 | 53 53 70 65 63 3b 20 69 |ar fs: F|SSpec; i|
|00000560| 6e 64 65 78 3a 20 69 6e | 74 65 67 65 72 3b 20 76 |ndex: in|teger; v|
|00000570| 61 72 20 70 62 3a 20 43 | 49 6e 66 6f 50 42 52 65 |ar pb: C|InfoPBRe|
|00000580| 63 29 3a 20 4f 53 45 72 | 72 3b 0d 09 66 75 6e 63 |c): OSEr|r;..func|
|00000590| 74 69 6f 6e 20 46 53 70 | 53 65 74 43 61 74 49 6e |tion FSp|SetCatIn|
|000005a0| 66 6f 20 28 76 61 72 20 | 66 73 3a 20 46 53 53 70 |fo (var |fs: FSSp|
|000005b0| 65 63 3b 20 76 61 72 20 | 70 62 3a 20 43 49 6e 66 |ec; var |pb: CInf|
|000005c0| 6f 50 42 52 65 63 29 3a | 20 4f 53 45 72 72 3b 0d |oPBRec):| OSErr;.|
|000005d0| 09 66 75 6e 63 74 69 6f | 6e 20 47 65 74 57 69 6e |.functio|n GetWin|
|000005e0| 64 6f 77 43 6f 6e 74 65 | 6e 74 52 65 67 69 6f 6e |dowConte|ntRegion|
|000005f0| 20 28 74 68 65 57 69 6e | 64 6f 77 3a 20 57 69 6e | (theWin|dow: Win|
|00000600| 64 6f 77 50 74 72 29 3a | 20 52 67 6e 48 61 6e 64 |dowPtr):| RgnHand|
|00000610| 6c 65 3b 0d 09 66 75 6e | 63 74 69 6f 6e 20 47 65 |le;..fun|ction Ge|
|00000620| 74 57 69 6e 64 6f 77 53 | 74 72 75 63 74 75 72 65 |tWindowS|tructure|
|00000630| 52 65 67 69 6f 6e 20 28 | 74 68 65 57 69 6e 64 6f |Region (|theWindo|
|00000640| 77 3a 20 57 69 6e 64 6f | 77 50 74 72 29 3a 20 52 |w: Windo|wPtr): R|
|00000650| 67 6e 48 61 6e 64 6c 65 | 3b 0d 09 66 75 6e 63 74 |gnHandle|;..funct|
|00000660| 69 6f 6e 20 54 69 74 6c | 65 42 61 72 4f 6e 53 63 |ion Titl|eBarOnSc|
|00000670| 72 65 65 6e 20 28 77 70 | 3a 20 57 69 6e 64 6f 77 |reen (wp|: Window|
|00000680| 50 74 72 29 3a 20 62 6f | 6f 6c 65 61 6e 3b 0d 09 |Ptr): bo|olean;..|
|00000690| 70 72 6f 63 65 64 75 72 | 65 20 47 65 74 57 69 6e |procedur|e GetWin|
|000006a0| 64 6f 77 50 6f 72 74 52 | 65 63 74 20 28 74 68 65 |dowPortR|ect (the|
|000006b0| 57 69 6e 64 6f 77 3a 20 | 57 69 6e 64 6f 77 50 74 |Window: |WindowPt|
|000006c0| 72 3b 20 76 61 72 20 70 | 6f 72 74 52 65 63 74 3a |r; var p|ortRect:|
|000006d0| 20 72 65 63 74 29 3b 0d | 09 70 72 6f 63 65 64 75 | rect);.|.procedu|
|000006e0| 72 65 20 47 65 74 57 69 | 6e 64 6f 77 52 65 63 74 |re GetWi|ndowRect|
|000006f0| 20 28 74 68 65 57 69 6e | 64 6f 77 3a 20 57 69 6e | (theWin|dow: Win|
|00000700| 64 6f 77 50 74 72 3b 20 | 76 61 72 20 72 3a 20 72 |dowPtr; |var r: r|
|00000710| 65 63 74 29 3b 0d 09 70 | 72 6f 63 65 64 75 72 65 |ect);..p|rocedure|
|00000720| 20 43 65 6e 74 72 65 52 | 65 63 74 20 28 69 6e 73 | CentreR|ect (ins|
|00000730| 69 64 65 5f 72 65 63 74 | 3a 20 52 65 63 74 3b 20 |ide_rect|: Rect; |
|00000740| 76 61 72 20 72 65 73 5f | 72 65 63 74 3a 20 52 65 |var res_|rect: Re|
|00000750| 63 74 29 3b 0d 09 70 72 | 6f 63 65 64 75 72 65 20 |ct);..pr|ocedure |
|00000760| 43 65 6e 74 72 65 41 6c | 65 72 74 20 28 69 64 3a |CentreAl|ert (id:|
|00000770| 20 69 6e 74 65 67 65 72 | 29 3b 0d 09 66 75 6e 63 | integer|);..func|
|00000780| 74 69 6f 6e 20 47 65 74 | 41 53 74 72 69 6e 67 20 |tion Get|AString |
|00000790| 28 69 64 2c 20 69 6e 64 | 65 78 3a 20 69 6e 74 65 |(id, ind|ex: inte|
|000007a0| 67 65 72 29 3a 20 53 74 | 72 32 35 35 3b 0d 09 70 |ger): St|r255;..p|
|000007b0| 72 6f 63 65 64 75 72 65 | 20 41 73 73 65 72 74 20 |rocedure| Assert |
|000007c0| 28 62 3a 20 62 6f 6f 6c | 65 61 6e 29 3b 0d 09 70 |(b: bool|ean);..p|
|000007d0| 72 6f 63 65 64 75 72 65 | 20 53 65 74 49 74 65 6d |rocedure| SetItem|
|000007e0| 45 6e 61 62 6c 65 20 28 | 6d 68 3a 20 6d 65 6e 75 |Enable (|mh: menu|
|000007f0| 48 61 6e 64 6c 65 3b 20 | 69 74 65 6d 3a 20 69 6e |Handle; |item: in|
|00000800| 74 65 67 65 72 3b 20 65 | 6e 61 62 6c 65 3a 20 62 |teger; e|nable: b|
|00000810| 6f 6f 6c 65 61 6e 29 3b | 0d 09 66 75 6e 63 74 69 |oolean);|..functi|
|00000820| 6f 6e 20 44 69 72 74 79 | 4b 65 79 20 28 63 68 3a |on Dirty|Key (ch:|
|00000830| 20 63 68 61 72 29 3a 20 | 62 6f 6f 6c 65 61 6e 3b | char): |boolean;|
|00000840| 0d 0d 09 66 75 6e 63 74 | 69 6f 6e 20 49 73 4b 65 |...funct|ion IsKe|
|00000850| 79 44 6f 77 6e 20 28 6b | 65 79 63 6f 64 65 3a 20 |yDown (k|eycode: |
|00000860| 69 6e 74 65 67 65 72 29 | 3a 20 62 6f 6f 6c 65 61 |integer)|: boolea|
|00000870| 6e 3b 0d 09 66 75 6e 63 | 74 69 6f 6e 20 53 65 6c |n;..func|tion Sel|
|00000880| 65 63 74 65 64 4c 69 6e | 65 20 28 6c 68 3a 20 4c |ectedLin|e (lh: L|
|00000890| 69 73 74 48 61 6e 64 6c | 65 29 3a 20 69 6e 74 65 |istHandl|e): inte|
|000008a0| 67 65 72 3b 0d 0d 09 66 | 75 6e 63 74 69 6f 6e 20 |ger;...f|unction |
|000008b0| 46 53 57 72 69 74 65 51 | 20 28 72 65 66 6e 75 6d |FSWriteQ| (refnum|
|000008c0| 3a 20 69 6e 74 65 67 65 | 72 3b 20 63 6f 75 6e 74 |: intege|r; count|
|000008d0| 3a 20 6c 6f 6e 67 69 6e | 74 3b 20 62 75 66 3a 20 |: longin|t; buf: |
|000008e0| 50 74 72 29 3a 20 4f 53 | 45 72 72 3b 0d 09 66 75 |Ptr): OS|Err;..fu|
|000008f0| 6e 63 74 69 6f 6e 20 46 | 53 52 65 61 64 51 20 28 |nction F|SReadQ (|
|00000900| 72 65 66 6e 75 6d 3a 20 | 69 6e 74 65 67 65 72 3b |refnum: |integer;|
|00000910| 20 63 6f 75 6e 74 3a 20 | 6c 6f 6e 67 69 6e 74 3b | count: |longint;|
|00000920| 20 62 75 66 3a 20 50 74 | 72 29 3a 20 4f 53 45 72 | buf: Pt|r): OSEr|
|00000930| 72 3b 0d 0d 09 70 72 6f | 63 65 64 75 72 65 20 44 |r;...pro|cedure D|
|00000940| 72 61 77 49 63 6f 6e 20 | 28 69 64 3a 20 69 6e 74 |rawIcon |(id: int|
|00000950| 65 67 65 72 3b 20 72 3a | 20 52 65 63 74 3b 20 68 |eger; r:| Rect; h|
|00000960| 69 67 68 6c 69 67 68 74 | 65 64 3a 20 62 6f 6f 6c |ighlight|ed: bool|
|00000970| 65 61 6e 29 3b 0d 0d 09 | 66 75 6e 63 74 69 6f 6e |ean);...|function|
|00000980| 20 46 69 6c 65 4c 6f 63 | 6b 65 64 20 28 66 73 73 | FileLoc|ked (fss|
|00000990| 3a 20 46 53 53 70 65 63 | 29 3a 20 62 6f 6f 6c 65 |: FSSpec|): boole|
|000009a0| 61 6e 3b 0d 0d 09 74 79 | 70 65 0d 09 09 47 65 74 |an;...ty|pe...Get|
|000009b0| 45 6e 74 72 79 4e 61 6d | 65 50 72 6f 63 54 79 70 |EntryNam|eProcTyp|
|000009c0| 65 20 3d 20 66 75 6e 63 | 74 69 6f 6e 28 6c 69 73 |e = func|tion(lis|
|000009d0| 74 3a 20 4c 69 73 74 48 | 61 6e 64 6c 65 3b 20 63 |t: ListH|andle; c|
|000009e0| 3a 20 63 65 6c 6c 29 3a | 20 73 74 72 32 35 35 3b |: cell):| str255;|
|000009f0| 0d 09 09 0d 09 70 72 6f | 63 65 64 75 72 65 20 44 |.....pro|cedure D|
|00000a00| 6f 4c 69 73 74 4b 65 79 | 20 28 6c 69 73 74 3a 20 |oListKey| (list: |
|00000a10| 4c 69 73 74 48 61 6e 64 | 6c 65 3b 20 76 61 72 20 |ListHand|le; var |
|00000a20| 65 72 3a 45 76 65 6e 74 | 52 65 63 6f 72 64 3b 20 |er:Event|Record; |
|00000a30| 67 65 74 65 6e 74 72 79 | 6e 61 6d 65 3a 20 47 65 |getentry|name: Ge|
|00000a40| 74 45 6e 74 72 79 4e 61 | 6d 65 50 72 6f 63 54 79 |tEntryNa|meProcTy|
|00000a50| 70 65 29 3b 0d 09 70 72 | 6f 63 65 64 75 72 65 20 |pe);..pr|ocedure |
|00000a60| 4c 53 65 74 4e 6f 53 65 | 6c 65 63 74 69 6f 6e 20 |LSetNoSe|lection |
|00000a70| 28 6c 69 73 74 3a 20 4c | 69 73 74 48 61 6e 64 6c |(list: L|istHandl|
|00000a80| 65 29 3b 0d 09 70 72 6f | 63 65 64 75 72 65 20 4c |e);..pro|cedure L|
|00000a90| 53 65 74 53 69 6e 67 6c | 65 53 65 6c 65 63 74 69 |SetSingl|eSelecti|
|00000aa0| 6f 6e 20 28 6c 69 73 74 | 3a 20 4c 69 73 74 48 61 |on (list|: ListHa|
|00000ab0| 6e 64 6c 65 3b 20 76 3a | 20 69 6e 74 65 67 65 72 |ndle; v:| integer|
|00000ac0| 29 3b 0d 0d 09 66 75 6e | 63 74 69 6f 6e 20 44 65 |);...fun|ction De|
|00000ad0| 63 53 74 72 20 28 6c 3a | 20 6c 6f 6e 67 69 6e 74 |cStr (l:| longint|
|00000ae0| 29 3a 20 53 74 72 32 35 | 35 3b 0d 09 66 75 6e 63 |): Str25|5;..func|
|00000af0| 74 69 6f 6e 20 43 6f 70 | 79 46 69 6c 65 20 28 73 |tion Cop|yFile (s|
|00000b00| 6f 75 72 63 65 2c 20 64 | 65 73 74 3a 20 46 53 53 |ource, d|est: FSS|
|00000b10| 70 65 63 29 3a 20 4f 53 | 45 72 72 3b 0d 0d 09 66 |pec): OS|Err;...f|
|00000b20| 75 6e 63 74 69 6f 6e 20 | 47 65 74 4f 77 6e 65 72 |unction |GetOwner|
|00000b30| 4e 61 6d 65 3a 20 73 74 | 72 32 35 35 3b 0d 09 66 |Name: st|r255;..f|
|00000b40| 75 6e 63 74 69 6f 6e 20 | 47 65 74 4d 61 63 68 69 |unction |GetMachi|
|00000b50| 6e 65 4e 61 6d 65 3a 20 | 73 74 72 32 35 35 3b 0d |neName: |str255;.|
|00000b60| 0d 09 66 75 6e 63 74 69 | 6f 6e 20 53 74 72 69 6e |..functi|on Strin|
|00000b70| 67 54 6f 4f 53 54 79 70 | 65 20 28 73 3a 20 73 74 |gToOSTyp|e (s: st|
|00000b80| 72 32 35 35 29 3a 20 4f | 53 54 79 70 65 3b 0d 09 |r255): O|SType;..|
|00000b90| 66 75 6e 63 74 69 6f 6e | 20 4f 53 54 79 70 65 54 |function| OSTypeT|
|00000ba0| 6f 53 74 72 69 6e 67 20 | 28 74 3a 20 4f 53 54 79 |oString |(t: OSTy|
|00000bb0| 70 65 29 3a 20 53 74 72 | 32 35 35 3b 0d 09 66 75 |pe): Str|255;..fu|
|00000bc0| 6e 63 74 69 6f 6e 20 54 | 50 70 6f 73 20 28 73 75 |nction T|Ppos (su|
|00000bd0| 62 2c 20 73 74 72 3a 20 | 73 74 72 69 6e 67 29 3a |b, str: |string):|
|00000be0| 20 69 6e 74 65 67 65 72 | 3b 0d 09 66 75 6e 63 74 | integer|;..funct|
|00000bf0| 69 6f 6e 20 54 50 63 6f | 70 79 20 28 73 6f 75 72 |ion TPco|py (sour|
|00000c00| 63 65 3a 20 73 74 72 69 | 6e 67 3b 20 73 74 61 72 |ce: stri|ng; star|
|00000c10| 74 2c 20 63 6f 75 6e 74 | 3a 20 69 6e 74 65 67 65 |t, count|: intege|
|00000c20| 72 29 3a 20 73 74 72 69 | 6e 67 3b 0d 09 66 75 6e |r): stri|ng;..fun|
|00000c30| 63 74 69 6f 6e 20 54 50 | 62 74 73 74 28 76 61 6c |ction TP|btst(val|
|00000c40| 75 65 3a 6c 6f 6e 67 69 | 6e 74 3b 20 62 69 74 3a |ue:longi|nt; bit:|
|00000c50| 69 6e 74 65 67 65 72 29 | 3a 42 6f 6f 6c 65 61 6e |integer)|:Boolean|
|00000c60| 3b 0d 0d 09 70 72 6f 63 | 65 64 75 72 65 20 53 61 |;...proc|edure Sa|
|00000c70| 66 65 41 70 70 65 6e 64 | 4d 65 6e 75 20 28 6d 68 |feAppend|Menu (mh|
|00000c80| 3a 20 4d 65 6e 75 48 61 | 6e 64 6c 65 3b 20 74 65 |: MenuHa|ndle; te|
|00000c90| 78 74 3a 20 73 74 72 32 | 35 35 29 3b 0d 0d 09 66 |xt: str2|55);...f|
|00000ca0| 75 6e 63 74 69 6f 6e 20 | 4e 65 77 4c 6f 6f 6b 75 |unction |NewLooku|
|00000cb0| 70 45 72 72 6f 72 28 4e | 65 72 73 49 44 20 3a 20 |pError(N|ersID : |
|00000cc0| 69 6e 74 65 67 65 72 3b | 20 65 72 72 6e 75 6d 20 |integer;| errnum |
|00000cd0| 3a 20 4f 53 53 74 61 74 | 75 73 29 20 3a 20 53 74 |: OSStat|us) : St|
|00000ce0| 72 32 35 35 3b 0d 09 28 | 2a 20 52 65 74 75 72 6e |r255;..(|* Return|
|00000cf0| 20 74 68 65 20 73 74 72 | 69 6e 67 20 61 73 73 6f | the str|ing asso|
|00000d00| 63 69 61 74 65 64 20 77 | 69 74 68 20 65 72 72 6e |ciated w|ith errn|
|00000d10| 75 6d 2e 20 20 54 68 65 | 20 27 4e 65 72 73 27 20 |um. The| 'Ners' |
|00000d20| 72 65 73 6f 75 72 63 65 | 0d 09 09 09 68 61 73 20 |resource|....has |
|00000d30| 61 20 52 65 73 45 64 69 | 74 20 74 65 6d 70 6c 61 |a ResEdi|t templa|
|00000d40| 74 65 20 6f 66 2e 2e 2e | 0d 09 09 09 0d 09 09 09 |te of...|........|
|00000d50| 09 2a 2a 2a 2a 2a 0d 09 | 09 09 09 4c 53 54 42 0d |.*****..|...LSTB.|
|00000d60| 09 09 09 09 0d 09 09 09 | 09 65 72 72 6e 75 6d 0d |........|.errnum.|
|00000d70| 09 09 09 09 44 4c 4e 47 | 0d 09 09 09 09 0d 09 09 |....DLNG|........|
|00000d80| 09 09 65 72 72 73 74 72 | 0d 09 09 09 09 50 53 54 |..errstr|.....PST|
|00000d90| 52 0d 09 09 09 09 0d 09 | 09 09 09 2a 2a 2a 2a 2a |R.......|...*****|
|00000da0| 0d 09 09 09 09 4c 53 54 | 45 0d 09 09 0d 09 09 20 |.....LST|E...... |
|00000db0| 54 68 65 72 65 20 6d 75 | 73 74 20 62 65 20 61 20 |There mu|st be a |
|00000dc0| 74 65 72 6d 69 6e 61 74 | 69 6e 67 20 65 6e 74 72 |terminat|ing entr|
|00000dd0| 79 20 77 69 74 68 20 65 | 72 72 6f 72 20 6e 75 6d |y with e|rror num|
|00000de0| 62 65 72 20 6f 66 20 30 | 20 74 68 61 74 20 63 6f |ber of 0| that co|
|00000df0| 6e 74 61 69 6e 73 0d 09 | 09 09 74 68 65 20 64 65 |ntains..|..the de|
|00000e00| 66 61 75 6c 74 20 65 72 | 72 6f 72 20 6d 65 73 73 |fault er|ror mess|
|00000e10| 61 67 65 2e 0d 09 2a 29 | 0d 09 0d 69 6d 70 6c 65 |age...*)|...imple|
|00000e20| 6d 65 6e 74 61 74 69 6f | 6e 0d 0d 09 75 73 65 73 |mentatio|n...uses|
|00000e30| 0d 09 09 49 63 6f 6e 73 | 2c 20 45 72 72 6f 72 73 |...Icons|, Errors|
|00000e40| 2c 20 52 65 73 6f 75 72 | 63 65 73 2c 20 44 69 61 |, Resour|ces, Dia|
|00000e50| 6c 6f 67 73 2c 20 54 6f | 6f 6c 55 74 69 6c 73 2c |logs, To|olUtils,|
|00000e60| 0d 0d 09 09 49 43 47 6c | 6f 62 61 6c 73 3b 0d 0d |....ICGl|obals;..|
|00000e70| 09 76 61 72 0d 09 09 74 | 79 70 65 64 5f 63 68 61 |.var...t|yped_cha|
|00000e80| 72 73 3a 20 73 74 72 33 | 31 3b 0d 09 09 74 79 70 |rs: str3|1;...typ|
|00000e90| 65 64 5f 74 69 6d 65 3a | 20 6c 6f 6e 67 49 6e 74 |ed_time:| longInt|
|00000ea0| 3b 0d 09 09 74 79 70 65 | 64 5f 6c 68 3a 20 4c 69 |;...type|d_lh: Li|
|00000eb0| 73 74 48 61 6e 64 6c 65 | 3b 0d 0d 09 70 72 6f 63 |stHandle|;...proc|
|00000ec0| 65 64 75 72 65 20 49 6e | 69 74 4d 69 73 63 53 75 |edure In|itMiscSu|
|00000ed0| 62 73 3b 0d 09 62 65 67 | 69 6e 0d 09 09 74 79 70 |bs;..beg|in...typ|
|00000ee0| 65 64 5f 63 68 61 72 73 | 20 3a 3d 20 27 27 3b 0d |ed_chars| := '';.|
|00000ef0| 09 09 74 79 70 65 64 5f | 74 69 6d 65 20 3a 3d 20 |..typed_|time := |
|00000f00| 30 3b 0d 09 09 74 79 70 | 65 64 5f 6c 68 20 3a 3d |0;...typ|ed_lh :=|
|00000f10| 20 6e 69 6c 3b 0d 09 65 | 6e 64 3b 0d 0d 09 66 75 | nil;..e|nd;...fu|
|00000f20| 6e 63 74 69 6f 6e 20 54 | 50 62 74 73 74 28 76 61 |nction T|Pbtst(va|
|00000f30| 6c 75 65 3a 6c 6f 6e 67 | 69 6e 74 3b 20 62 69 74 |lue:long|int; bit|
|00000f40| 3a 69 6e 74 65 67 65 72 | 29 3a 42 6f 6f 6c 65 61 |:integer|):Boolea|
|00000f50| 6e 3b 0d 09 62 65 67 69 | 6e 0d 09 09 54 50 62 74 |n;..begi|n...TPbt|
|00000f60| 73 74 20 3a 3d 20 62 74 | 73 74 28 76 61 6c 75 65 |st := bt|st(value|
|00000f70| 2c 20 62 69 74 29 3b 0d | 09 65 6e 64 3b 0d 09 0d |, bit);.|.end;...|
|00000f80| 09 66 75 6e 63 74 69 6f | 6e 20 54 50 63 6f 70 79 |.functio|n TPcopy|
|00000f90| 20 28 73 6f 75 72 63 65 | 3a 20 73 74 72 69 6e 67 | (source|: string|
|00000fa0| 3b 20 73 74 61 72 74 2c | 20 63 6f 75 6e 74 3a 20 |; start,| count: |
|00000fb0| 69 6e 74 65 67 65 72 29 | 3a 20 73 74 72 69 6e 67 |integer)|: string|
|00000fc0| 3b 0d 09 62 65 67 69 6e | 0d 09 09 69 66 20 28 73 |;..begin|...if (s|
|00000fd0| 74 61 72 74 20 3c 20 31 | 29 20 74 68 65 6e 20 62 |tart < 1|) then b|
|00000fe0| 65 67 69 6e 0d 09 09 09 | 63 6f 75 6e 74 20 3a 3d |egin....|count :=|
|00000ff0| 20 63 6f 75 6e 74 20 2d | 20 28 31 20 2d 20 73 74 | count -| (1 - st|
|00001000| 61 72 74 29 3b 0d 09 09 | 09 73 74 61 72 74 20 3a |art);...|.start :|
|00001010| 3d 20 31 3b 0d 09 09 65 | 6e 64 3b 0d 09 09 69 66 |= 1;...e|nd;...if|
|00001020| 20 73 74 61 72 74 20 2b | 20 63 6f 75 6e 74 20 3e | start +| count >|
|00001030| 20 6c 65 6e 67 74 68 28 | 73 6f 75 72 63 65 29 20 | length(|source) |
|00001040| 74 68 65 6e 20 62 65 67 | 69 6e 0d 09 09 09 63 6f |then beg|in....co|
|00001050| 75 6e 74 20 3a 3d 20 6c | 65 6e 67 74 68 28 73 6f |unt := l|ength(so|
|00001060| 75 72 63 65 29 20 2d 20 | 73 74 61 72 74 20 2b 20 |urce) - |start + |
|00001070| 31 3b 0d 09 09 65 6e 64 | 3b 0d 09 09 69 66 20 63 |1;...end|;...if c|
|00001080| 6f 75 6e 74 20 3c 20 30 | 20 74 68 65 6e 20 62 65 |ount < 0| then be|
|00001090| 67 69 6e 0d 09 09 09 63 | 6f 75 6e 74 20 3a 3d 20 |gin....c|ount := |
|000010a0| 30 3b 0d 09 09 65 6e 64 | 3b 0d 09 09 73 6f 75 72 |0;...end|;...sour|
|000010b0| 63 65 5b 30 5d 20 3a 3d | 20 63 68 72 28 63 6f 75 |ce[0] :=| chr(cou|
|000010c0| 6e 74 29 3b 0d 09 09 42 | 6c 6f 63 6b 4d 6f 76 65 |nt);...B|lockMove|
|000010d0| 44 61 74 61 28 40 73 6f | 75 72 63 65 5b 73 74 61 |Data(@so|urce[sta|
|000010e0| 72 74 5d 2c 20 40 73 6f | 75 72 63 65 5b 31 5d 2c |rt], @so|urce[1],|
|000010f0| 20 63 6f 75 6e 74 29 3b | 0d 09 09 54 50 63 6f 70 | count);|...TPcop|
|00001100| 79 20 3a 3d 20 73 6f 75 | 72 63 65 3b 0d 09 65 6e |y := sou|rce;..en|
|00001110| 64 3b 0d 0d 09 66 75 6e | 63 74 69 6f 6e 20 54 50 |d;...fun|ction TP|
|00001120| 70 6f 73 20 28 73 75 62 | 2c 20 73 74 72 3a 20 73 |pos (sub|, str: s|
|00001130| 74 72 69 6e 67 29 3a 20 | 69 6e 74 65 67 65 72 3b |tring): |integer;|
|00001140| 0d 09 09 76 61 72 0d 09 | 09 09 69 2c 20 6a 2c 20 |...var..|..i, j, |
|00001150| 72 65 74 3a 20 69 6e 74 | 65 67 65 72 3b 0d 09 62 |ret: int|eger;..b|
|00001160| 65 67 69 6e 0d 09 09 69 | 20 3a 3d 20 31 3b 0d 09 |egin...i| := 1;..|
|00001170| 09 72 65 74 20 3a 3d 20 | 31 3b 0d 09 09 69 66 20 |.ret := |1;...if |
|00001180| 6c 65 6e 67 74 68 28 73 | 75 62 29 20 3e 20 30 20 |length(s|ub) > 0 |
|00001190| 74 68 65 6e 20 62 65 67 | 69 6e 0d 09 09 09 72 65 |then beg|in....re|
|000011a0| 74 20 3a 3d 20 30 3b 0d | 09 09 09 77 68 69 6c 65 |t := 0;.|...while|
|000011b0| 20 28 69 20 3c 3d 20 6c | 65 6e 67 74 68 28 73 74 | (i <= l|ength(st|
|000011c0| 72 29 20 2d 20 6c 65 6e | 67 74 68 28 73 75 62 29 |r) - len|gth(sub)|
|000011d0| 20 2b 20 31 29 20 64 6f | 20 62 65 67 69 6e 0d 09 | + 1) do| begin..|
|000011e0| 09 09 09 69 66 20 73 74 | 72 5b 69 5d 20 3d 20 73 |...if st|r[i] = s|
|000011f0| 75 62 5b 31 5d 20 74 68 | 65 6e 20 62 65 67 69 6e |ub[1] th|en begin|
|00001200| 0d 09 09 09 09 09 6a 3a | 3d 32 3b 0d 09 09 09 09 |......j:|=2;.....|
|00001210| 09 77 68 69 6c 65 20 6a | 3c 3d 6c 65 6e 67 74 68 |.while j|<=length|
|00001220| 28 73 75 62 29 20 64 6f | 20 62 65 67 69 6e 0d 09 |(sub) do| begin..|
|00001230| 09 09 09 09 09 69 66 20 | 73 74 72 5b 69 2b 6a 2d |.....if |str[i+j-|
|00001240| 31 5d 3c 3e 73 75 62 5b | 6a 5d 20 74 68 65 6e 20 |1]<>sub[|j] then |
|00001250| 62 65 67 69 6e 0d 09 09 | 09 09 09 09 09 6c 65 61 |begin...|.....lea|
|00001260| 76 65 3b 0d 09 09 09 09 | 09 09 65 6e 64 3b 0d 09 |ve;.....|..end;..|
|00001270| 09 09 09 09 09 6a 3a 3d | 6a 2b 31 3b 0d 09 09 09 |.....j:=|j+1;....|
|00001280| 09 09 65 6e 64 3b 0d 09 | 09 09 09 09 69 66 20 6a |..end;..|....if j|
|00001290| 3e 6c 65 6e 67 74 68 28 | 73 75 62 29 20 74 68 65 |>length(|sub) the|
|000012a0| 6e 20 62 65 67 69 6e 0d | 09 09 09 09 09 09 72 65 |n begin.|......re|
|000012b0| 74 3a 3d 69 3b 0d 09 09 | 09 09 09 09 6c 65 61 76 |t:=i;...|....leav|
|000012c0| 65 3b 0d 09 09 09 09 09 | 65 6e 64 3b 0d 09 09 09 |e;......|end;....|
|000012d0| 09 65 6e 64 3b 0d 09 09 | 09 09 69 20 3a 3d 20 69 |.end;...|..i := i|
|000012e0| 20 2b 20 31 3b 0d 09 09 | 09 65 6e 64 3b 0d 09 09 | + 1;...|.end;...|
|000012f0| 65 6e 64 3b 0d 09 09 54 | 50 70 6f 73 20 3a 3d 20 |end;...T|Ppos := |
|00001300| 72 65 74 3b 0d 09 65 6e | 64 3b 0d 0d 09 66 75 6e |ret;..en|d;...fun|
|00001310| 63 74 69 6f 6e 20 53 74 | 72 69 6e 67 54 6f 4f 53 |ction St|ringToOS|
|00001320| 54 79 70 65 20 28 73 3a | 20 73 74 72 32 35 35 29 |Type (s:| str255)|
|00001330| 3a 20 4f 53 54 79 70 65 | 3b 0d 09 09 76 61 72 0d |: OSType|;...var.|
|00001340| 09 09 09 74 3a 20 4f 53 | 54 79 70 65 3b 0d 09 62 |...t: OS|Type;..b|
|00001350| 65 67 69 6e 0d 09 09 73 | 20 3a 3d 20 63 6f 6e 63 |egin...s| := conc|
|00001360| 61 74 28 73 2c 20 63 68 | 72 28 30 29 2c 20 63 68 |at(s, ch|r(0), ch|
|00001370| 72 28 30 29 2c 20 63 68 | 72 28 30 29 2c 20 63 68 |r(0), ch|r(0), ch|
|00001380| 72 28 30 29 29 3b 0d 09 | 09 42 6c 6f 63 6b 4d 6f |r(0));..|.BlockMo|
|00001390| 76 65 44 61 74 61 28 40 | 73 5b 31 5d 2c 20 40 74 |veData(@|s[1], @t|
|000013a0| 2c 20 34 29 3b 0d 09 09 | 53 74 72 69 6e 67 54 6f |, 4);...|StringTo|
|000013b0| 4f 53 54 79 70 65 20 3a | 3d 20 74 3b 0d 09 65 6e |OSType :|= t;..en|
|000013c0| 64 3b 0d 0d 09 66 75 6e | 63 74 69 6f 6e 20 4f 53 |d;...fun|ction OS|
|000013d0| 54 79 70 65 54 6f 53 74 | 72 69 6e 67 20 28 74 3a |TypeToSt|ring (t:|
|000013e0| 20 4f 53 54 79 70 65 29 | 3a 20 53 74 72 32 35 35 | OSType)|: Str255|
|000013f0| 3b 0d 09 09 76 61 72 0d | 09 09 09 73 3a 53 74 72 |;...var.|...s:Str|
|00001400| 32 35 35 3b 0d 09 62 65 | 67 69 6e 0d 09 09 73 3a |255;..be|gin...s:|
|00001410| 3d 63 6f 6e 63 61 74 28 | 63 68 72 28 30 29 2c 63 |=concat(|chr(0),c|
|00001420| 68 72 28 30 29 2c 63 68 | 72 28 30 29 2c 63 68 72 |hr(0),ch|r(0),chr|
|00001430| 28 30 29 29 3b 0d 09 09 | 42 6c 6f 63 6b 4d 6f 76 |(0));...|BlockMov|
|00001440| 65 44 61 74 61 28 40 74 | 2c 40 73 5b 31 5d 2c 34 |eData(@t|,@s[1],4|
|00001450| 29 3b 0d 09 09 4f 53 54 | 79 70 65 54 6f 53 74 72 |);...OST|ypeToStr|
|00001460| 69 6e 67 3a 3d 73 3b 0d | 09 65 6e 64 3b 0d 0d 09 |ing:=s;.|.end;...|
|00001470| 70 72 6f 63 65 64 75 72 | 65 20 44 72 61 77 49 63 |procedur|e DrawIc|
|00001480| 6f 6e 20 28 69 64 3a 20 | 69 6e 74 65 67 65 72 3b |on (id: |integer;|
|00001490| 20 72 3a 20 52 65 63 74 | 3b 20 68 69 67 68 6c 69 | r: Rect|; highli|
|000014a0| 67 68 74 65 64 3a 20 62 | 6f 6f 6c 65 61 6e 29 3b |ghted: b|oolean);|
|000014b0| 0d 09 09 76 61 72 0d 09 | 09 09 73 75 69 74 65 3a |...var..|..suite:|
|000014c0| 20 48 61 6e 64 6c 65 3b | 0d 09 09 09 69 63 6f 6e | Handle;|....icon|
|000014d0| 68 3a 20 48 61 6e 64 6c | 65 3b 0d 09 09 09 6a 75 |h: Handl|e;....ju|
|000014e0| 6e 6b 3a 20 4f 53 45 72 | 72 3b 0d 09 09 09 74 72 |nk: OSEr|r;....tr|
|000014f0| 61 6e 73 66 6f 72 6d 3a | 20 69 6e 74 65 67 65 72 |ansform:| integer|
|00001500| 3b 0d 09 62 65 67 69 6e | 0d 09 09 69 66 20 73 79 |;..begin|...if sy|
|00001510| 73 74 65 6d 37 20 26 20 | 28 47 65 74 49 63 6f 6e |stem7 & |(GetIcon|
|00001520| 53 75 69 74 65 28 73 75 | 69 74 65 2c 20 69 64 2c |Suite(su|ite, id,|
|00001530| 20 73 76 41 6c 6c 4c 61 | 72 67 65 44 61 74 61 29 | svAllLa|rgeData)|
|00001540| 20 3d 20 6e 6f 45 72 72 | 29 20 74 68 65 6e 20 62 | = noErr|) then b|
|00001550| 65 67 69 6e 0d 09 09 09 | 69 66 20 68 69 67 68 6c |egin....|if highl|
|00001560| 69 67 68 74 65 64 20 74 | 68 65 6e 20 62 65 67 69 |ighted t|hen begi|
|00001570| 6e 0d 09 09 09 09 74 72 | 61 6e 73 66 6f 72 6d 20 |n.....tr|ansform |
|00001580| 3a 3d 20 74 74 53 65 6c | 65 63 74 65 64 3b 0d 09 |:= ttSel|ected;..|
|00001590| 09 09 65 6e 64 20 65 6c | 73 65 20 62 65 67 69 6e |..end el|se begin|
|000015a0| 0d 09 09 09 09 74 72 61 | 6e 73 66 6f 72 6d 20 3a |.....tra|nsform :|
|000015b0| 3d 20 74 74 4e 6f 6e 65 | 3b 0d 09 09 09 65 6e 64 |= ttNone|;....end|
|000015c0| 3b 20 28 2a 20 69 66 20 | 2a 29 0d 09 09 09 6a 75 |; (* if |*)....ju|
|000015d0| 6e 6b 20 3a 3d 20 50 6c | 6f 74 49 63 6f 6e 53 75 |nk := Pl|otIconSu|
|000015e0| 69 74 65 28 72 2c 20 30 | 2c 20 74 72 61 6e 73 66 |ite(r, 0|, transf|
|000015f0| 6f 72 6d 2c 20 73 75 69 | 74 65 29 3b 0d 09 09 09 |orm, sui|te);....|
|00001600| 6a 75 6e 6b 20 3a 3d 20 | 44 69 73 70 6f 73 65 49 |junk := |DisposeI|
|00001610| 63 6f 6e 53 75 69 74 65 | 28 73 75 69 74 65 2c 20 |conSuite|(suite, |
|00001620| 66 61 6c 73 65 29 3b 0d | 09 09 65 6e 64 20 65 6c |false);.|..end el|
|00001630| 73 65 20 62 65 67 69 6e | 0d 09 09 09 69 63 6f 6e |se begin|....icon|
|00001640| 68 20 3a 3d 20 47 65 74 | 31 52 65 73 6f 75 72 63 |h := Get|1Resourc|
|00001650| 65 28 27 49 43 4e 23 27 | 2c 20 69 64 29 3b 0d 09 |e('ICN#'|, id);..|
|00001660| 09 09 69 66 20 69 63 6f | 6e 68 20 3c 3e 20 6e 69 |..if ico|nh <> ni|
|00001670| 6c 20 74 68 65 6e 20 62 | 65 67 69 6e 0d 09 09 09 |l then b|egin....|
|00001680| 09 50 6c 6f 74 49 63 6f | 6e 28 72 2c 20 69 63 6f |.PlotIco|n(r, ico|
|00001690| 6e 68 29 3b 0d 09 09 09 | 65 6e 64 3b 20 28 2a 20 |nh);....|end; (* |
|000016a0| 69 66 20 2a 29 0d 09 09 | 65 6e 64 3b 20 28 2a 20 |if *)...|end; (* |
|000016b0| 69 66 20 2a 29 0d 09 65 | 6e 64 3b 20 28 2a 20 69 |if *)..e|nd; (* i|
|000016c0| 66 20 2a 29 0d 0d 09 66 | 75 6e 63 74 69 6f 6e 20 |f *)...f|unction |
|000016d0| 46 53 57 72 69 74 65 51 | 20 28 72 65 66 6e 75 6d |FSWriteQ| (refnum|
|000016e0| 3a 20 69 6e 74 65 67 65 | 72 3b 20 63 6f 75 6e 74 |: intege|r; count|
|000016f0| 3a 20 6c 6f 6e 67 69 6e | 74 3b 20 62 75 66 3a 20 |: longin|t; buf: |
|00001700| 50 74 72 29 3a 20 4f 53 | 45 72 72 3b 0d 09 62 65 |Ptr): OS|Err;..be|
|00001710| 67 69 6e 0d 09 09 46 53 | 57 72 69 74 65 51 20 3a |gin...FS|WriteQ :|
|00001720| 3d 20 46 53 57 72 69 74 | 65 28 72 65 66 6e 75 6d |= FSWrit|e(refnum|
|00001730| 2c 20 63 6f 75 6e 74 2c | 20 62 75 66 29 3b 0d 09 |, count,| buf);..|
|00001740| 65 6e 64 3b 20 28 2a 20 | 46 53 57 72 69 74 65 51 |end; (* |FSWriteQ|
|00001750| 20 2a 29 0d 0d 09 66 75 | 6e 63 74 69 6f 6e 20 46 | *)...fu|nction F|
|00001760| 53 52 65 61 64 51 20 28 | 72 65 66 6e 75 6d 3a 20 |SReadQ (|refnum: |
|00001770| 69 6e 74 65 67 65 72 3b | 20 63 6f 75 6e 74 3a 20 |integer;| count: |
|00001780| 6c 6f 6e 67 69 6e 74 3b | 20 62 75 66 3a 20 50 74 |longint;| buf: Pt|
|00001790| 72 29 3a 20 4f 53 45 72 | 72 3b 0d 09 62 65 67 69 |r): OSEr|r;..begi|
|000017a0| 6e 0d 09 09 46 53 52 65 | 61 64 51 20 3a 3d 20 46 |n...FSRe|adQ := F|
|000017b0| 53 52 65 61 64 28 72 65 | 66 6e 75 6d 2c 20 63 6f |SRead(re|fnum, co|
|000017c0| 75 6e 74 2c 20 62 75 66 | 29 3b 0d 09 65 6e 64 3b |unt, buf|);..end;|
|000017d0| 20 28 2a 20 46 53 52 65 | 61 64 51 20 2a 29 0d 0d | (* FSRe|adQ *)..|
|000017e0| 09 66 75 6e 63 74 69 6f | 6e 20 53 65 6c 65 63 74 |.functio|n Select|
|000017f0| 65 64 4c 69 6e 65 20 28 | 6c 68 3a 20 4c 69 73 74 |edLine (|lh: List|
|00001800| 48 61 6e 64 6c 65 29 3a | 20 69 6e 74 65 67 65 72 |Handle):| integer|
|00001810| 3b 0d 09 09 76 61 72 0d | 09 09 09 61 63 65 6c 6c |;...var.|...acell|
|00001820| 3a 20 43 65 6c 6c 3b 0d | 09 62 65 67 69 6e 0d 09 |: Cell;.|.begin..|
|00001830| 09 53 65 74 50 74 28 61 | 63 65 6c 6c 2c 20 30 2c |.SetPt(a|cell, 0,|
|00001840| 20 30 29 3b 0d 09 09 69 | 66 20 4c 47 65 74 53 65 | 0);...i|f LGetSe|
|00001850| 6c 65 63 74 28 74 72 75 | 65 2c 20 61 63 65 6c 6c |lect(tru|e, acell|
|00001860| 2c 20 6c 68 29 20 74 68 | 65 6e 20 62 65 67 69 6e |, lh) th|en begin|
|00001870| 0d 09 09 09 53 65 6c 65 | 63 74 65 64 4c 69 6e 65 |....Sele|ctedLine|
|00001880| 20 3a 3d 20 61 63 65 6c | 6c 2e 76 3b 0d 09 09 65 | := acel|l.v;...e|
|00001890| 6e 64 20 65 6c 73 65 20 | 62 65 67 69 6e 0d 09 09 |nd else |begin...|
|000018a0| 09 53 65 6c 65 63 74 65 | 64 4c 69 6e 65 20 3a 3d |.Selecte|dLine :=|
|000018b0| 20 2d 31 3b 0d 09 09 65 | 6e 64 3b 20 28 2a 20 69 | -1;...e|nd; (* i|
|000018c0| 66 20 2a 29 0d 09 65 6e | 64 3b 20 28 2a 20 53 65 |f *)..en|d; (* Se|
|000018d0| 6c 65 63 74 65 64 4c 69 | 6e 65 20 2a 29 0d 0d 09 |lectedLi|ne *)...|
|000018e0| 66 75 6e 63 74 69 6f 6e | 20 49 73 4b 65 79 44 6f |function| IsKeyDo|
|000018f0| 77 6e 20 28 6b 65 79 63 | 6f 64 65 3a 20 69 6e 74 |wn (keyc|ode: int|
|00001900| 65 67 65 72 29 3a 20 62 | 6f 6f 6c 65 61 6e 3b 0d |eger): b|oolean;.|
|00001910| 09 09 76 61 72 0d 09 09 | 09 6d 79 6b 65 79 73 3a |..var...|.mykeys:|
|00001920| 20 4b 65 79 4d 61 70 3b | 0d 09 62 65 67 69 6e 0d | KeyMap;|..begin.|
|00001930| 09 09 47 65 74 4b 65 79 | 73 28 6d 79 6b 65 79 73 |..GetKey|s(mykeys|
|00001940| 29 3b 0d 09 09 49 73 4b | 65 79 44 6f 77 6e 20 3a |);...IsK|eyDown :|
|00001950| 3d 20 6d 79 6b 65 79 73 | 5b 6b 65 79 63 6f 64 65 |= mykeys|[keycode|
|00001960| 5d 3b 0d 09 65 6e 64 3b | 20 28 2a 20 49 73 4b 65 |];..end;| (* IsKe|
|00001970| 79 44 6f 77 6e 20 2a 29 | 0d 0d 09 66 75 6e 63 74 |yDown *)|...funct|
|00001980| 69 6f 6e 20 47 65 74 56 | 6f 6c 49 6e 66 6f 20 28 |ion GetV|olInfo (|
|00001990| 76 61 72 20 6e 61 6d 65 | 3a 20 73 74 72 36 33 3b |var name|: str63;|
|000019a0| 20 76 61 72 20 76 72 6e | 3a 20 69 6e 74 65 67 65 | var vrn|: intege|
|000019b0| 72 3b 20 69 6e 64 65 78 | 3a 20 69 6e 74 65 67 65 |r; index|: intege|
|000019c0| 72 3b 20 76 61 72 20 43 | 72 44 61 74 65 3a 20 6c |r; var C|rDate: l|
|000019d0| 6f 6e 67 49 6e 74 29 3a | 20 4f 53 45 72 72 3b 0d |ongInt):| OSErr;.|
|000019e0| 09 09 76 61 72 0d 09 09 | 09 70 62 3a 20 70 61 72 |..var...|.pb: par|
|000019f0| 61 6d 42 6c 6f 63 6b 52 | 65 63 3b 0d 09 09 09 6f |amBlockR|ec;....o|
|00001a00| 65 3a 20 4f 53 45 72 72 | 3b 0d 09 62 65 67 69 6e |e: OSErr|;..begin|
|00001a10| 0d 09 09 69 66 20 28 6e | 61 6d 65 20 3c 3e 20 27 |...if (n|ame <> '|
|00001a20| 27 29 20 26 20 28 6e 61 | 6d 65 5b 6c 65 6e 67 74 |') & (na|me[lengt|
|00001a30| 68 28 6e 61 6d 65 29 5d | 20 3c 3e 20 27 3a 27 29 |h(name)]| <> ':')|
|00001a40| 20 74 68 65 6e 0d 09 09 | 09 6e 61 6d 65 20 3a 3d | then...|.name :=|
|00001a50| 20 63 6f 6e 63 61 74 28 | 6e 61 6d 65 2c 20 27 3a | concat(|name, ':|
|00001a60| 27 29 3b 0d 09 09 70 62 | 2e 69 6f 4e 61 6d 65 50 |');...pb|.ioNameP|
|00001a70| 74 72 20 3a 3d 20 40 6e | 61 6d 65 3b 0d 09 09 70 |tr := @n|ame;...p|
|00001a80| 62 2e 69 6f 56 52 65 66 | 4e 75 6d 20 3a 3d 20 76 |b.ioVRef|Num := v|
|00001a90| 72 6e 3b 0d 09 09 70 62 | 2e 69 6f 56 6f 6c 49 6e |rn;...pb|.ioVolIn|
|00001aa0| 64 65 78 20 3a 3d 20 69 | 6e 64 65 78 3b 0d 09 09 |dex := i|ndex;...|
|00001ab0| 6f 65 20 3a 3d 20 50 42 | 47 65 74 56 49 6e 66 6f |oe := PB|GetVInfo|
|00001ac0| 53 79 6e 63 28 40 70 62 | 29 3b 0d 09 09 69 66 20 |Sync(@pb|);...if |
|00001ad0| 6f 65 20 3d 20 6e 6f 45 | 72 72 20 74 68 65 6e 20 |oe = noE|rr then |
|00001ae0| 62 65 67 69 6e 0d 09 09 | 09 76 72 6e 20 3a 3d 20 |begin...|.vrn := |
|00001af0| 70 62 2e 69 6f 56 52 65 | 66 4e 75 6d 3b 0d 09 09 |pb.ioVRe|fNum;...|
|00001b00| 09 43 72 44 61 74 65 20 | 3a 3d 20 70 62 2e 69 6f |.CrDate |:= pb.io|
|00001b10| 56 43 72 44 61 74 65 3b | 0d 09 09 65 6e 64 3b 0d |VCrDate;|...end;.|
|00001b20| 09 09 47 65 74 56 6f 6c | 49 6e 66 6f 20 3a 3d 20 |..GetVol|Info := |
|00001b30| 6f 65 3b 0d 09 65 6e 64 | 3b 0d 0d 09 66 75 6e 63 |oe;..end|;...func|
|00001b40| 74 69 6f 6e 20 4d 79 47 | 65 74 41 50 50 4c 20 28 |tion MyG|etAPPL (|
|00001b50| 73 69 67 3a 20 4f 53 54 | 79 70 65 3b 20 76 61 72 |sig: OST|ype; var|
|00001b60| 20 66 73 3a 20 46 53 53 | 70 65 63 29 3a 20 4f 53 | fs: FSS|pec): OS|
|00001b70| 45 72 72 3b 0d 09 09 76 | 61 72 0d 09 09 09 69 3a |Err;...v|ar....i:|
|00001b80| 20 69 6e 74 65 67 65 72 | 3b 0d 09 09 09 70 62 64 | integer|;....pbd|
|00001b90| 74 3a 20 44 54 50 42 52 | 65 63 3b 0d 09 09 09 63 |t: DTPBR|ec;....c|
|00001ba0| 72 64 61 74 65 3a 20 6c | 6f 6e 67 49 6e 74 3b 0d |rdate: l|ongInt;.|
|00001bb0| 09 09 09 6f 65 3a 20 4f | 53 45 72 72 3b 0d 09 09 |...oe: O|SErr;...|
|00001bc0| 09 66 6f 75 6e 64 3a 20 | 62 6f 6f 6c 65 61 6e 3b |.found: |boolean;|
|00001bd0| 0d 09 62 65 67 69 6e 0d | 09 09 66 6f 75 6e 64 20 |..begin.|..found |
|00001be0| 3a 3d 20 66 61 6c 73 65 | 3b 0d 09 09 69 66 20 73 |:= false|;...if s|
|00001bf0| 79 73 74 65 6d 37 20 74 | 68 65 6e 20 62 65 67 69 |ystem7 t|hen begi|
|00001c00| 6e 0d 09 09 09 69 20 3a | 3d 20 31 3b 0d 09 09 09 |n....i :|= 1;....|
|00001c10| 72 65 70 65 61 74 0d 09 | 09 09 09 66 73 2e 76 52 |repeat..|...fs.vR|
|00001c20| 65 66 4e 75 6d 20 3a 3d | 20 30 3b 0d 09 09 09 09 |efNum :=| 0;.....|
|00001c30| 66 73 2e 6e 61 6d 65 20 | 3a 3d 20 27 27 3b 0d 09 |fs.name |:= '';..|
|00001c40| 09 09 09 6f 65 20 3a 3d | 20 47 65 74 56 6f 6c 49 |...oe :=| GetVolI|
|00001c50| 6e 66 6f 28 66 73 2e 6e | 61 6d 65 2c 20 66 73 2e |nfo(fs.n|ame, fs.|
|00001c60| 76 52 65 66 4e 75 6d 2c | 20 69 2c 20 63 72 64 61 |vRefNum,| i, crda|
|00001c70| 74 65 29 3b 0d 09 09 09 | 09 69 20 3a 3d 20 69 20 |te);....|.i := i |
|00001c80| 2b 20 31 3b 0d 09 09 09 | 09 69 66 20 6f 65 20 3d |+ 1;....|.if oe =|
|00001c90| 20 6e 6f 45 72 72 20 74 | 68 65 6e 20 62 65 67 69 | noErr t|hen begi|
|00001ca0| 6e 0d 09 09 09 09 09 77 | 69 74 68 20 70 62 64 74 |n......w|ith pbdt|
|00001cb0| 20 64 6f 20 62 65 67 69 | 6e 0d 09 09 09 09 09 09 | do begi|n.......|
|00001cc0| 66 73 2e 6e 61 6d 65 20 | 3a 3d 20 27 27 3b 0d 09 |fs.name |:= '';..|
|00001cd0| 09 09 09 09 09 69 6f 4e | 61 6d 65 50 74 72 20 3a |.....ioN|amePtr :|
|00001ce0| 3d 20 40 66 73 2e 6e 61 | 6d 65 3b 0d 09 09 09 09 |= @fs.na|me;.....|
|00001cf0| 09 09 69 6f 56 52 65 66 | 4e 75 6d 20 3a 3d 20 66 |..ioVRef|Num := f|
|00001d00| 73 2e 76 52 65 66 4e 75 | 6d 3b 0d 09 09 09 09 09 |s.vRefNu|m;......|
|00001d10| 09 6f 65 20 3a 3d 20 50 | 42 44 54 47 65 74 50 61 |.oe := P|BDTGetPa|
|00001d20| 74 68 28 40 70 62 64 74 | 29 3b 0d 09 09 09 09 09 |th(@pbdt|);......|
|00001d30| 09 69 66 20 6f 65 20 3d | 20 6e 6f 45 72 72 20 74 |.if oe =| noErr t|
|00001d40| 68 65 6e 20 62 65 67 69 | 6e 0d 09 09 09 09 09 09 |hen begi|n.......|
|00001d50| 09 69 6f 49 6e 64 65 78 | 20 3a 3d 20 30 3b 0d 09 |.ioIndex| := 0;..|
|00001d60| 09 09 09 09 09 09 69 6f | 46 69 6c 65 43 72 65 61 |......io|FileCrea|
|00001d70| 74 6f 72 20 3a 3d 20 73 | 69 67 3b 0d 09 09 09 09 |tor := s|ig;.....|
|00001d80| 09 09 09 6f 65 20 3a 3d | 20 50 42 44 54 47 65 74 |...oe :=| PBDTGet|
|00001d90| 41 50 50 4c 53 79 6e 63 | 28 40 70 62 64 74 29 3b |APPLSync|(@pbdt);|
|00001da0| 0d 09 09 09 09 09 09 09 | 69 66 20 6f 65 20 3d 20 |........|if oe = |
|00001db0| 6e 6f 45 72 72 20 74 68 | 65 6e 0d 09 09 09 09 09 |noErr th|en......|
|00001dc0| 09 09 09 66 6f 75 6e 64 | 20 3a 3d 20 74 72 75 65 |...found| := true|
|00001dd0| 3b 0d 09 09 09 09 09 09 | 65 6e 64 3b 0d 09 09 09 |;.......|end;....|
|00001de0| 09 09 65 6e 64 3b 0d 09 | 09 09 09 09 6f 65 20 3a |..end;..|....oe :|
|00001df0| 3d 20 6e 6f 45 72 72 3b | 0d 09 09 09 09 65 6e 64 |= noErr;|.....end|
|00001e00| 3b 0d 09 09 09 75 6e 74 | 69 6c 20 66 6f 75 6e 64 |;....unt|il found|
|00001e10| 20 6f 72 20 28 6f 65 20 | 3c 3e 20 6e 6f 45 72 72 | or (oe |<> noErr|
|00001e20| 29 3b 0d 09 09 65 6e 64 | 3b 0d 09 09 69 66 20 66 |);...end|;...if f|
|00001e30| 6f 75 6e 64 20 74 68 65 | 6e 20 62 65 67 69 6e 0d |ound the|n begin.|
|00001e40| 09 09 09 6f 65 20 3a 3d | 20 6e 6f 45 72 72 3b 0d |...oe :=| noErr;.|
|00001e50| 09 09 09 66 73 2e 70 61 | 72 49 44 20 3a 3d 20 70 |...fs.pa|rID := p|
|00001e60| 62 64 74 2e 69 6f 41 50 | 50 4c 50 61 72 49 44 3b |bdt.ioAP|PLParID;|
|00001e70| 0d 09 09 65 6e 64 20 65 | 6c 73 65 20 62 65 67 69 |...end e|lse begi|
|00001e80| 6e 0d 09 09 09 6f 65 20 | 3a 3d 20 61 66 70 49 74 |n....oe |:= afpIt|
|00001e90| 65 6d 4e 6f 74 46 6f 75 | 6e 64 3b 0d 09 09 09 66 |emNotFou|nd;....f|
|00001ea0| 73 2e 76 52 65 66 4e 75 | 6d 20 3a 3d 20 30 3b 0d |s.vRefNu|m := 0;.|
|00001eb0| 09 09 09 66 73 2e 70 61 | 72 49 44 20 3a 3d 20 32 |...fs.pa|rID := 2|
|00001ec0| 3b 0d 09 09 09 66 73 2e | 6e 61 6d 65 20 3a 3d 20 |;....fs.|name := |
|00001ed0| 27 27 3b 0d 09 09 65 6e | 64 3b 0d 09 09 4d 79 47 |'';...en|d;...MyG|
|00001ee0| 65 74 41 50 50 4c 20 3a | 3d 20 6f 65 3b 0d 09 65 |etAPPL :|= oe;..e|
|00001ef0| 6e 64 3b 0d 0d 09 66 75 | 6e 63 74 69 6f 6e 20 46 |nd;...fu|nction F|
|00001f00| 53 70 47 65 74 43 61 74 | 49 6e 66 6f 20 28 76 61 |SpGetCat|Info (va|
|00001f10| 72 20 66 73 3a 20 46 53 | 53 70 65 63 3b 20 69 6e |r fs: FS|Spec; in|
|00001f20| 64 65 78 3a 20 69 6e 74 | 65 67 65 72 3b 20 76 61 |dex: int|eger; va|
|00001f30| 72 20 70 62 3a 20 43 49 | 6e 66 6f 50 42 52 65 63 |r pb: CI|nfoPBRec|
|00001f40| 29 3a 20 4f 53 45 72 72 | 3b 0d 09 62 65 67 69 6e |): OSErr|;..begin|
|00001f50| 0d 09 09 70 62 2e 69 6f | 56 52 65 66 4e 75 6d 20 |...pb.io|VRefNum |
|00001f60| 3a 3d 20 66 73 2e 76 52 | 65 66 4e 75 6d 3b 0d 09 |:= fs.vR|efNum;..|
|00001f70| 09 70 62 2e 69 6f 44 69 | 72 49 44 20 3a 3d 20 66 |.pb.ioDi|rID := f|
|00001f80| 73 2e 70 61 72 49 44 3b | 0d 09 09 70 62 2e 69 6f |s.parID;|...pb.io|
|00001f90| 4e 61 6d 65 50 74 72 20 | 3a 3d 20 40 66 73 2e 6e |NamePtr |:= @fs.n|
|00001fa0| 61 6d 65 3b 0d 09 09 70 | 62 2e 69 6f 46 44 69 72 |ame;...p|b.ioFDir|
|00001fb0| 49 6e 64 65 78 20 3a 3d | 20 69 6e 64 65 78 3b 0d |Index :=| index;.|
|00001fc0| 09 09 46 53 70 47 65 74 | 43 61 74 49 6e 66 6f 20 |..FSpGet|CatInfo |
|00001fd0| 3a 3d 20 50 42 47 65 74 | 43 61 74 49 6e 66 6f 53 |:= PBGet|CatInfoS|
|00001fe0| 79 6e 63 28 40 70 62 29 | 3b 0d 09 65 6e 64 3b 0d |ync(@pb)|;..end;.|
|00001ff0| 0d 09 66 75 6e 63 74 69 | 6f 6e 20 46 53 70 53 65 |..functi|on FSpSe|
|00002000| 74 43 61 74 49 6e 66 6f | 20 28 76 61 72 20 66 73 |tCatInfo| (var fs|
|00002010| 3a 20 46 53 53 70 65 63 | 3b 20 76 61 72 20 70 62 |: FSSpec|; var pb|
|00002020| 3a 20 43 49 6e 66 6f 50 | 42 52 65 63 29 3a 20 4f |: CInfoP|BRec): O|
|00002030| 53 45 72 72 3b 0d 09 62 | 65 67 69 6e 0d 09 09 70 |SErr;..b|egin...p|
|00002040| 62 2e 69 6f 56 52 65 66 | 4e 75 6d 20 3a 3d 20 66 |b.ioVRef|Num := f|
|00002050| 73 2e 76 52 65 66 4e 75 | 6d 3b 0d 09 09 70 62 2e |s.vRefNu|m;...pb.|
|00002060| 69 6f 44 69 72 49 44 20 | 3a 3d 20 66 73 2e 70 61 |ioDirID |:= fs.pa|
|00002070| 72 49 44 3b 0d 09 09 70 | 62 2e 69 6f 4e 61 6d 65 |rID;...p|b.ioName|
|00002080| 50 74 72 20 3a 3d 20 40 | 66 73 2e 6e 61 6d 65 3b |Ptr := @|fs.name;|
|00002090| 0d 09 09 46 53 70 53 65 | 74 43 61 74 49 6e 66 6f |...FSpSe|tCatInfo|
|000020a0| 20 3a 3d 20 50 42 53 65 | 74 43 61 74 49 6e 66 6f | := PBSe|tCatInfo|
|000020b0| 53 79 6e 63 28 40 70 62 | 29 3b 0d 09 65 6e 64 3b |Sync(@pb|);..end;|
|000020c0| 0d 0d 09 66 75 6e 63 74 | 69 6f 6e 20 47 65 74 57 |...funct|ion GetW|
|000020d0| 69 6e 64 6f 77 43 6f 6e | 74 65 6e 74 52 65 67 69 |indowCon|tentRegi|
|000020e0| 6f 6e 20 28 74 68 65 57 | 69 6e 64 6f 77 3a 20 57 |on (theW|indow: W|
|000020f0| 69 6e 64 6f 77 50 74 72 | 29 3a 20 52 67 6e 48 61 |indowPtr|): RgnHa|
|00002100| 6e 64 6c 65 3b 0d 09 62 | 65 67 69 6e 0d 09 09 47 |ndle;..b|egin...G|
|00002110| 65 74 57 69 6e 64 6f 77 | 43 6f 6e 74 65 6e 74 52 |etWindow|ContentR|
|00002120| 65 67 69 6f 6e 20 3a 3d | 20 57 69 6e 64 6f 77 50 |egion :=| WindowP|
|00002130| 65 65 6b 28 74 68 65 57 | 69 6e 64 6f 77 29 5e 2e |eek(theW|indow)^.|
|00002140| 63 6f 6e 74 52 67 6e 3b | 0d 09 65 6e 64 3b 0d 0d |contRgn;|..end;..|
|00002150| 09 66 75 6e 63 74 69 6f | 6e 20 47 65 74 57 69 6e |.functio|n GetWin|
|00002160| 64 6f 77 53 74 72 75 63 | 74 75 72 65 52 65 67 69 |dowStruc|tureRegi|
|00002170| 6f 6e 20 28 74 68 65 57 | 69 6e 64 6f 77 3a 20 57 |on (theW|indow: W|
|00002180| 69 6e 64 6f 77 50 74 72 | 29 3a 20 52 67 6e 48 61 |indowPtr|): RgnHa|
|00002190| 6e 64 6c 65 3b 0d 09 62 | 65 67 69 6e 0d 09 09 47 |ndle;..b|egin...G|
|000021a0| 65 74 57 69 6e 64 6f 77 | 53 74 72 75 63 74 75 72 |etWindow|Structur|
|000021b0| 65 52 65 67 69 6f 6e 20 | 3a 3d 20 57 69 6e 64 6f |eRegion |:= Windo|
|000021c0| 77 50 65 65 6b 28 74 68 | 65 57 69 6e 64 6f 77 29 |wPeek(th|eWindow)|
|000021d0| 5e 2e 73 74 72 75 63 52 | 67 6e 3b 0d 09 65 6e 64 |^.strucR|gn;..end|
|000021e0| 3b 0d 0d 09 66 75 6e 63 | 74 69 6f 6e 20 54 69 74 |;...func|tion Tit|
|000021f0| 6c 65 42 61 72 4f 6e 53 | 63 72 65 65 6e 20 28 77 |leBarOnS|creen (w|
|00002200| 70 3a 20 57 69 6e 64 6f | 77 50 74 72 29 3a 20 62 |p: Windo|wPtr): b|
|00002210| 6f 6f 6c 65 61 6e 3b 0d | 09 09 76 61 72 0d 09 09 |oolean;.|..var...|
|00002220| 09 72 67 6e 3a 20 52 67 | 6e 48 61 6e 64 6c 65 3b |.rgn: Rg|nHandle;|
|00002230| 0d 09 62 65 67 69 6e 0d | 09 09 72 67 6e 20 3a 3d |..begin.|..rgn :=|
|00002240| 20 4e 65 77 52 67 6e 3b | 0d 09 09 43 6f 70 79 52 | NewRgn;|...CopyR|
|00002250| 67 6e 28 47 65 74 57 69 | 6e 64 6f 77 53 74 72 75 |gn(GetWi|ndowStru|
|00002260| 63 74 75 72 65 52 65 67 | 69 6f 6e 28 77 70 29 2c |ctureReg|ion(wp),|
|00002270| 20 72 67 6e 29 3b 0d 09 | 09 44 69 66 66 52 67 6e | rgn);..|.DiffRgn|
|00002280| 28 72 67 6e 2c 20 47 65 | 74 57 69 6e 64 6f 77 43 |(rgn, Ge|tWindowC|
|00002290| 6f 6e 74 65 6e 74 52 65 | 67 69 6f 6e 28 77 70 29 |ontentRe|gion(wp)|
|000022a0| 2c 20 72 67 6e 29 3b 0d | 09 09 53 65 63 74 52 67 |, rgn);.|..SectRg|
|000022b0| 6e 28 72 67 6e 2c 20 47 | 65 74 47 72 61 79 52 67 |n(rgn, G|etGrayRg|
|000022c0| 6e 2c 20 72 67 6e 29 3b | 0d 09 09 54 69 74 6c 65 |n, rgn);|...Title|
|000022d0| 42 61 72 4f 6e 53 63 72 | 65 65 6e 20 3a 3d 20 6e |BarOnScr|een := n|
|000022e0| 6f 74 20 45 6d 70 74 79 | 52 67 6e 28 72 67 6e 29 |ot Empty|Rgn(rgn)|
|000022f0| 3b 0d 09 09 44 69 73 70 | 6f 73 65 52 67 6e 28 72 |;...Disp|oseRgn(r|
|00002300| 67 6e 29 3b 0d 09 65 6e | 64 3b 0d 0d 09 70 72 6f |gn);..en|d;...pro|
|00002310| 63 65 64 75 72 65 20 47 | 65 74 57 69 6e 64 6f 77 |cedure G|etWindow|
|00002320| 50 6f 72 74 52 65 63 74 | 20 28 74 68 65 57 69 6e |PortRect| (theWin|
|00002330| 64 6f 77 3a 20 57 69 6e | 64 6f 77 50 74 72 3b 20 |dow: Win|dowPtr; |
|00002340| 76 61 72 20 70 6f 72 74 | 52 65 63 74 3a 20 72 65 |var port|Rect: re|
|00002350| 63 74 29 3b 0d 09 62 65 | 67 69 6e 0d 09 09 70 6f |ct);..be|gin...po|
|00002360| 72 74 52 65 63 74 20 3a | 3d 20 57 69 6e 64 6f 77 |rtRect :|= Window|
|00002370| 50 65 65 6b 28 74 68 65 | 57 69 6e 64 6f 77 29 5e |Peek(the|Window)^|
|00002380| 2e 70 6f 72 74 2e 70 6f | 72 74 52 65 63 74 3b 0d |.port.po|rtRect;.|
|00002390| 09 65 6e 64 3b 0d 0d 09 | 70 72 6f 63 65 64 75 72 |.end;...|procedur|
|000023a0| 65 20 47 65 74 57 69 6e | 64 6f 77 52 65 63 74 20 |e GetWin|dowRect |
|000023b0| 28 74 68 65 57 69 6e 64 | 6f 77 3a 20 57 69 6e 64 |(theWind|ow: Wind|
|000023c0| 6f 77 50 74 72 3b 20 76 | 61 72 20 72 3a 20 72 65 |owPtr; v|ar r: re|
|000023d0| 63 74 29 3b 0d 09 62 65 | 67 69 6e 0d 09 09 53 65 |ct);..be|gin...Se|
|000023e0| 74 50 6f 72 74 28 74 68 | 65 57 69 6e 64 6f 77 29 |tPort(th|eWindow)|
|000023f0| 3b 0d 09 09 47 65 74 57 | 69 6e 64 6f 77 50 6f 72 |;...GetW|indowPor|
|00002400| 74 52 65 63 74 28 74 68 | 65 57 69 6e 64 6f 77 2c |tRect(th|eWindow,|
|00002410| 20 72 29 3b 0d 09 09 4c | 6f 63 61 6c 54 6f 47 6c | r);...L|ocalToGl|
|00002420| 6f 62 61 6c 28 72 2e 74 | 6f 70 6c 65 66 74 29 3b |obal(r.t|opleft);|
|00002430| 0d 09 09 4c 6f 63 61 6c | 54 6f 47 6c 6f 62 61 6c |...Local|ToGlobal|
|00002440| 28 72 2e 62 6f 74 72 69 | 67 68 74 29 3b 0d 09 65 |(r.botri|ght);..e|
|00002450| 6e 64 3b 0d 0d 09 70 72 | 6f 63 65 64 75 72 65 20 |nd;...pr|ocedure |
|00002460| 43 65 6e 74 72 65 52 65 | 63 74 20 28 69 6e 73 69 |CentreRe|ct (insi|
|00002470| 64 65 5f 72 65 63 74 3a | 20 52 65 63 74 3b 20 76 |de_rect:| Rect; v|
|00002480| 61 72 20 72 65 73 5f 72 | 65 63 74 3a 20 52 65 63 |ar res_r|ect: Rec|
|00002490| 74 29 3b 0d 09 09 76 61 | 72 0d 09 09 09 73 74 61 |t);...va|r....sta|
|000024a0| 74 5f 73 69 7a 3a 20 50 | 6f 69 6e 74 3b 0d 09 62 |t_siz: P|oint;..b|
|000024b0| 65 67 69 6e 0d 09 09 73 | 74 61 74 5f 73 69 7a 20 |egin...s|tat_siz |
|000024c0| 3a 3d 20 69 6e 73 69 64 | 65 5f 72 65 63 74 2e 62 |:= insid|e_rect.b|
|000024d0| 6f 74 72 69 67 68 74 3b | 0d 09 09 53 75 62 50 74 |otright;|...SubPt|
|000024e0| 28 69 6e 73 69 64 65 5f | 72 65 63 74 2e 74 6f 70 |(inside_|rect.top|
|000024f0| 6c 65 66 74 2c 20 73 74 | 61 74 5f 73 69 7a 29 3b |left, st|at_siz);|
|00002500| 0d 09 09 4f 66 66 73 65 | 74 52 65 63 74 28 72 65 |...Offse|tRect(re|
|00002510| 73 5f 72 65 63 74 2c 20 | 2d 72 65 73 5f 72 65 63 |s_rect, |-res_rec|
|00002520| 74 2e 6c 65 66 74 2c 20 | 2d 72 65 73 5f 72 65 63 |t.left, |-res_rec|
|00002530| 74 2e 74 6f 70 29 3b 0d | 09 09 53 75 62 50 74 28 |t.top);.|..SubPt(|
|00002540| 72 65 73 5f 72 65 63 74 | 2e 62 6f 74 72 69 67 68 |res_rect|.botrigh|
|00002550| 74 2c 20 73 74 61 74 5f | 73 69 7a 29 3b 0d 09 09 |t, stat_|siz);...|
|00002560| 73 74 61 74 5f 73 69 7a | 2e 68 20 3a 3d 20 73 74 |stat_siz|.h := st|
|00002570| 61 74 5f 73 69 7a 2e 68 | 20 64 69 76 20 32 3b 0d |at_siz.h| div 2;.|
|00002580| 09 09 73 74 61 74 5f 73 | 69 7a 2e 76 20 3a 3d 20 |..stat_s|iz.v := |
|00002590| 73 74 61 74 5f 73 69 7a | 2e 76 20 64 69 76 20 32 |stat_siz|.v div 2|
|000025a0| 3b 0d 09 09 41 64 64 50 | 74 28 69 6e 73 69 64 65 |;...AddP|t(inside|
|000025b0| 5f 72 65 63 74 2e 74 6f | 70 6c 65 66 74 2c 20 73 |_rect.to|pleft, s|
|000025c0| 74 61 74 5f 73 69 7a 29 | 3b 0d 09 09 4f 66 66 73 |tat_siz)|;...Offs|
|000025d0| 65 74 52 65 63 74 28 72 | 65 73 5f 72 65 63 74 2c |etRect(r|es_rect,|
|000025e0| 20 73 74 61 74 5f 73 69 | 7a 2e 68 2c 20 73 74 61 | stat_si|z.h, sta|
|000025f0| 74 5f 73 69 7a 2e 76 29 | 3b 0d 09 65 6e 64 3b 20 |t_siz.v)|;..end; |
|00002600| 28 2a 20 43 65 6e 74 72 | 65 52 65 63 74 20 2a 29 |(* Centr|eRect *)|
|00002610| 0d 0d 09 70 72 6f 63 65 | 64 75 72 65 20 43 65 6e |...proce|dure Cen|
|00002620| 74 72 65 41 6c 65 72 74 | 20 28 69 64 3a 20 69 6e |treAlert| (id: in|
|00002630| 74 65 67 65 72 29 3b 0d | 09 09 76 61 72 0d 09 09 |teger);.|..var...|
|00002640| 09 61 6c 65 72 74 68 3a | 20 41 6c 65 72 74 54 48 |.alerth:| AlertTH|
|00002650| 6e 64 6c 3b 0d 09 09 09 | 62 6f 75 6e 64 73 3a 20 |ndl;....|bounds: |
|00002660| 52 65 63 74 3b 0d 09 62 | 65 67 69 6e 0d 09 09 61 |Rect;..b|egin...a|
|00002670| 6c 65 72 74 68 20 3a 3d | 20 41 6c 65 72 74 54 48 |lerth :=| AlertTH|
|00002680| 6e 64 6c 28 47 65 74 52 | 65 73 6f 75 72 63 65 28 |ndl(GetR|esource(|
|00002690| 27 41 4c 52 54 27 2c 20 | 69 64 29 29 3b 0d 09 09 |'ALRT', |id));...|
|000026a0| 69 66 20 61 6c 65 72 74 | 68 20 3c 3e 20 6e 69 6c |if alert|h <> nil|
|000026b0| 20 74 68 65 6e 20 62 65 | 67 69 6e 0d 09 09 09 62 | then be|gin....b|
|000026c0| 6f 75 6e 64 73 20 3a 3d | 20 71 64 2e 73 63 72 65 |ounds :=| qd.scre|
|000026d0| 65 6e 42 69 74 73 2e 62 | 6f 75 6e 64 73 3b 0d 09 |enBits.b|ounds;..|
|000026e0| 09 09 62 6f 75 6e 64 73 | 2e 62 6f 74 74 6f 6d 20 |..bounds|.bottom |
|000026f0| 3a 3d 20 28 62 6f 75 6e | 64 73 2e 62 6f 74 74 6f |:= (boun|ds.botto|
|00002700| 6d 20 2d 20 62 6f 75 6e | 64 73 2e 74 6f 70 29 20 |m - boun|ds.top) |
|00002710| 2a 20 32 20 64 69 76 20 | 33 20 2b 20 62 6f 75 6e |* 2 div |3 + boun|
|00002720| 64 73 2e 74 6f 70 3b 0d | 09 09 09 48 4c 6f 63 6b |ds.top;.|...HLock|
|00002730| 28 48 61 6e 64 6c 65 28 | 61 6c 65 72 74 68 29 29 |(Handle(|alerth))|
|00002740| 3b 0d 09 09 09 43 65 6e | 74 72 65 52 65 63 74 28 |;....Cen|treRect(|
|00002750| 62 6f 75 6e 64 73 2c 20 | 61 6c 65 72 74 68 5e 5e |bounds, |alerth^^|
|00002760| 2e 62 6f 75 6e 64 73 52 | 65 63 74 29 3b 0d 09 09 |.boundsR|ect);...|
|00002770| 09 48 55 6e 6c 6f 63 6b | 28 48 61 6e 64 6c 65 28 |.HUnlock|(Handle(|
|00002780| 61 6c 65 72 74 68 29 29 | 3b 0d 09 09 65 6e 64 3b |alerth))|;...end;|
|00002790| 20 28 2a 20 69 66 20 2a | 29 0d 09 65 6e 64 3b 20 | (* if *|)..end; |
|000027a0| 28 2a 20 43 65 6e 74 72 | 65 41 6c 65 72 74 20 2a |(* Centr|eAlert *|
|000027b0| 29 0d 0d 09 66 75 6e 63 | 74 69 6f 6e 20 47 65 74 |)...func|tion Get|
|000027c0| 41 53 74 72 69 6e 67 20 | 28 69 64 2c 20 69 6e 64 |AString |(id, ind|
|000027d0| 65 78 3a 20 69 6e 74 65 | 67 65 72 29 3a 20 53 74 |ex: inte|ger): St|
|000027e0| 72 32 35 35 3b 0d 09 09 | 76 61 72 0d 09 09 09 72 |r255;...|var....r|
|000027f0| 65 73 3a 20 53 74 72 32 | 35 35 3b 0d 09 62 65 67 |es: Str2|55;..beg|
|00002800| 69 6e 0d 09 09 47 65 74 | 49 6e 64 53 74 72 69 6e |in...Get|IndStrin|
|00002810| 67 28 72 65 73 2c 20 69 | 64 2c 20 69 6e 64 65 78 |g(res, i|d, index|
|00002820| 29 3b 0d 09 09 47 65 74 | 41 53 74 72 69 6e 67 20 |);...Get|AString |
|00002830| 3a 3d 20 72 65 73 3b 0d | 09 65 6e 64 3b 20 28 2a |:= res;.|.end; (*|
|00002840| 20 47 65 74 41 53 74 72 | 69 6e 67 20 2a 29 0d 0d | GetAStr|ing *)..|
|00002850| 09 70 72 6f 63 65 64 75 | 72 65 20 41 73 73 65 72 |.procedu|re Asser|
|00002860| 74 20 28 62 3a 20 62 6f | 6f 6c 65 61 6e 29 3b 0d |t (b: bo|olean);.|
|00002870| 09 62 65 67 69 6e 0d 09 | 09 69 66 20 6e 6f 74 20 |.begin..|.if not |
|00002880| 62 20 74 68 65 6e 20 62 | 65 67 69 6e 0d 09 09 09 |b then b|egin....|
|00002890| 44 65 62 75 67 53 74 72 | 28 27 41 73 73 65 72 74 |DebugStr|('Assert|
|000028a0| 69 6f 6e 20 66 61 69 6c | 75 72 65 20 3b 20 73 63 |ion fail|ure ; sc|
|000028b0| 27 29 3b 0d 09 09 65 6e | 64 3b 20 28 2a 20 69 66 |');...en|d; (* if|
|000028c0| 20 2a 29 0d 09 65 6e 64 | 3b 0d 0d 09 70 72 6f 63 | *)..end|;...proc|
|000028d0| 65 64 75 72 65 20 53 65 | 74 49 74 65 6d 45 6e 61 |edure Se|tItemEna|
|000028e0| 62 6c 65 20 28 6d 68 3a | 20 6d 65 6e 75 48 61 6e |ble (mh:| menuHan|
|000028f0| 64 6c 65 3b 20 69 74 65 | 6d 3a 20 69 6e 74 65 67 |dle; ite|m: integ|
|00002900| 65 72 3b 20 65 6e 61 62 | 6c 65 3a 20 62 6f 6f 6c |er; enab|le: bool|
|00002910| 65 61 6e 29 3b 0d 09 62 | 65 67 69 6e 0d 09 09 69 |ean);..b|egin...i|
|00002920| 66 20 65 6e 61 62 6c 65 | 20 74 68 65 6e 20 62 65 |f enable| then be|
|00002930| 67 69 6e 0d 09 09 09 45 | 6e 61 62 6c 65 49 74 65 |gin....E|nableIte|
|00002940| 6d 28 6d 68 2c 20 69 74 | 65 6d 29 3b 0d 09 09 65 |m(mh, it|em);...e|
|00002950| 6e 64 20 65 6c 73 65 20 | 62 65 67 69 6e 0d 09 09 |nd else |begin...|
|00002960| 09 44 69 73 61 62 6c 65 | 49 74 65 6d 28 6d 68 2c |.Disable|Item(mh,|
|00002970| 20 69 74 65 6d 29 3b 0d | 09 09 65 6e 64 3b 0d 09 | item);.|..end;..|
|00002980| 65 6e 64 3b 0d 0d 09 66 | 75 6e 63 74 69 6f 6e 20 |end;...f|unction |
|00002990| 44 69 72 74 79 4b 65 79 | 20 28 63 68 3a 20 63 68 |DirtyKey| (ch: ch|
|000029a0| 61 72 29 3a 20 62 6f 6f | 6c 65 61 6e 3b 0d 09 62 |ar): boo|lean;..b|
|000029b0| 65 67 69 6e 0d 09 09 63 | 61 73 65 20 6f 72 64 28 |egin...c|ase ord(|
|000029c0| 63 68 29 20 6f 66 0d 09 | 09 09 68 6f 6d 65 43 68 |ch) of..|..homeCh|
|000029d0| 61 72 2c 20 65 6e 64 43 | 68 61 72 2c 20 68 65 6c |ar, endC|har, hel|
|000029e0| 70 43 68 61 72 2c 20 70 | 61 67 65 55 70 43 68 61 |pChar, p|ageUpCha|
|000029f0| 72 2c 20 70 61 67 65 44 | 6f 77 6e 43 68 61 72 2c |r, pageD|ownChar,|
|00002a00| 20 6c 65 66 74 41 72 72 | 6f 77 43 68 61 72 2c 20 | leftArr|owChar, |
|00002a10| 72 69 67 68 74 41 72 72 | 6f 77 43 68 61 72 2c 20 |rightArr|owChar, |
|00002a20| 75 70 41 72 72 6f 77 43 | 68 61 72 2c 20 64 6f 77 |upArrowC|har, dow|
|00002a30| 6e 41 72 72 6f 77 43 68 | 61 72 3a 20 0d 09 09 09 |nArrowCh|ar: ....|
|00002a40| 09 44 69 72 74 79 4b 65 | 79 20 3a 3d 20 66 61 6c |.DirtyKe|y := fal|
|00002a50| 73 65 3b 0d 09 09 09 6f | 74 68 65 72 77 69 73 65 |se;....o|therwise|
|00002a60| 0d 09 09 09 09 44 69 72 | 74 79 4b 65 79 20 3a 3d |.....Dir|tyKey :=|
|00002a70| 20 74 72 75 65 3b 0d 09 | 09 65 6e 64 3b 0d 09 65 | true;..|.end;..e|
|00002a80| 6e 64 3b 0d 0d 09 66 75 | 6e 63 74 69 6f 6e 20 49 |nd;...fu|nction I|
|00002a90| 73 56 6f 6c 75 6d 65 57 | 72 69 74 65 61 62 6c 65 |sVolumeW|riteable|
|00002aa0| 20 28 76 52 65 66 4e 75 | 6d 3a 20 69 6e 74 65 67 | (vRefNu|m: integ|
|00002ab0| 65 72 29 3a 20 4f 53 45 | 72 72 3b 0d 09 09 76 61 |er): OSE|rr;...va|
|00002ac0| 72 0d 09 09 09 70 62 3a | 20 48 50 61 72 61 6d 42 |r....pb:| HParamB|
|00002ad0| 6c 6f 63 6b 52 65 63 3b | 0d 09 09 09 65 72 72 3a |lockRec;|....err:|
|00002ae0| 20 4f 53 45 72 72 3b 0d | 09 62 65 67 69 6e 0d 09 | OSErr;.|.begin..|
|00002af0| 09 70 62 2e 69 6f 56 52 | 65 66 4e 75 6d 20 3a 3d |.pb.ioVR|efNum :=|
|00002b00| 20 76 52 65 66 4e 75 6d | 3b 0d 09 09 70 62 2e 69 | vRefNum|;...pb.i|
|00002b10| 6f 4e 61 6d 65 50 74 72 | 20 3a 3d 20 6e 69 6c 3b |oNamePtr| := nil;|
|00002b20| 0d 09 09 70 62 2e 69 6f | 56 6f 6c 49 6e 64 65 78 |...pb.io|VolIndex|
|00002b30| 20 3a 3d 20 30 3b 0d 09 | 09 65 72 72 20 3a 3d 20 | := 0;..|.err := |
|00002b40| 50 42 48 47 65 74 56 49 | 6e 66 6f 53 79 6e 63 28 |PBHGetVI|nfoSync(|
|00002b50| 40 70 62 29 3b 0d 0d 09 | 09 69 66 20 65 72 72 20 |@pb);...|.if err |
|00002b60| 3d 20 6e 6f 45 72 72 20 | 74 68 65 6e 20 62 65 67 |= noErr |then beg|
|00002b70| 69 6e 0d 09 09 09 69 66 | 20 42 41 4e 44 28 70 62 |in....if| BAND(pb|
|00002b80| 2e 69 6f 56 41 74 72 62 | 2c 20 24 30 30 38 30 29 |.ioVAtrb|, $0080)|
|00002b90| 20 3c 3e 20 30 20 74 68 | 65 6e 20 62 65 67 69 6e | <> 0 th|en begin|
|00002ba0| 0d 09 09 09 09 65 72 72 | 20 3a 3d 20 77 50 72 45 |.....err| := wPrE|
|00002bb0| 72 72 3b 09 09 7b 20 76 | 6f 6c 75 6d 65 20 6c 6f |rr;..{ v|olume lo|
|00002bc0| 63 6b 65 64 20 62 79 20 | 68 61 72 64 77 61 72 65 |cked by |hardware|
|00002bd0| 20 7d 0d 09 09 09 65 6e | 64 20 65 6c 73 65 20 69 | }....en|d else i|
|00002be0| 66 20 42 41 4e 44 28 70 | 62 2e 69 6f 56 41 74 72 |f BAND(p|b.ioVAtr|
|00002bf0| 62 2c 20 24 38 30 30 30 | 29 20 3c 3e 20 30 20 74 |b, $8000|) <> 0 t|
|00002c00| 68 65 6e 20 62 65 67 69 | 6e 0d 09 09 09 09 65 72 |hen begi|n.....er|
|00002c10| 72 20 3a 3d 20 76 4c 63 | 6b 64 45 72 72 3b 09 7b |r := vLc|kdErr;.{|
|00002c20| 20 76 6f 6c 75 6d 65 20 | 6c 6f 63 6b 65 64 20 62 | volume |locked b|
|00002c30| 79 20 73 6f 66 74 77 61 | 72 65 20 7d 0d 09 09 09 |y softwa|re }....|
|00002c40| 65 6e 64 3b 0d 09 09 65 | 6e 64 3b 0d 0d 09 09 49 |end;...e|nd;....I|
|00002c50| 73 56 6f 6c 75 6d 65 57 | 72 69 74 65 61 62 6c 65 |sVolumeW|riteable|
|00002c60| 20 3a 3d 20 65 72 72 3b | 0d 09 65 6e 64 3b 0d 0d | := err;|..end;..|
|00002c70| 09 66 75 6e 63 74 69 6f | 6e 20 49 73 46 69 6c 65 |.functio|n IsFile|
|00002c80| 57 72 69 74 65 61 62 6c | 65 20 28 66 73 3a 20 46 |Writeabl|e (fs: F|
|00002c90| 53 53 70 65 63 29 3a 20 | 4f 53 45 72 72 3b 0d 09 |SSpec): |OSErr;..|
|00002ca0| 09 76 61 72 0d 09 09 09 | 70 62 3a 20 43 49 6e 66 |.var....|pb: CInf|
|00002cb0| 6f 50 42 52 65 63 3b 0d | 09 09 09 65 72 72 3a 20 |oPBRec;.|...err: |
|00002cc0| 4f 53 45 72 72 3b 0d 09 | 62 65 67 69 6e 0d 09 09 |OSErr;..|begin...|
|00002cd0| 70 62 2e 69 6f 4e 61 6d | 65 50 74 72 20 3a 3d 20 |pb.ioNam|ePtr := |
|00002ce0| 40 66 73 2e 6e 61 6d 65 | 3b 0d 09 09 70 62 2e 69 |@fs.name|;...pb.i|
|00002cf0| 6f 56 52 65 66 4e 75 6d | 20 3a 3d 20 66 73 2e 76 |oVRefNum| := fs.v|
|00002d00| 52 65 66 4e 75 6d 3b 0d | 09 09 70 62 2e 69 6f 44 |RefNum;.|..pb.ioD|
|00002d10| 69 72 49 44 20 3a 3d 20 | 66 73 2e 70 61 72 49 44 |irID := |fs.parID|
|00002d20| 3b 0d 09 09 70 62 2e 69 | 6f 46 44 69 72 49 6e 64 |;...pb.i|oFDirInd|
|00002d30| 65 78 20 3a 3d 20 30 3b | 09 7b 20 75 73 65 20 69 |ex := 0;|.{ use i|
|00002d40| 6f 4e 61 6d 65 50 74 72 | 20 61 6e 64 20 69 6f 44 |oNamePtr| and ioD|
|00002d50| 69 72 49 44 20 7d 0d 09 | 09 65 72 72 20 3a 3d 20 |irID }..|.err := |
|00002d60| 50 42 47 65 74 43 61 74 | 49 6e 66 6f 53 79 6e 63 |PBGetCat|InfoSync|
|00002d70| 28 40 70 62 29 3b 0d 0d | 09 09 69 66 20 65 72 72 |(@pb);..|..if err|
|00002d80| 20 3d 20 6e 6f 45 72 72 | 20 74 68 65 6e 20 62 65 | = noErr| then be|
|00002d90| 67 69 6e 0d 09 09 09 69 | 66 20 42 41 4e 44 28 70 |gin....i|f BAND(p|
|00002da0| 62 2e 69 6f 46 6c 41 74 | 74 72 69 62 2c 20 24 30 |b.ioFlAt|trib, $0|
|00002db0| 31 29 20 3c 3e 20 30 20 | 74 68 65 6e 20 62 65 67 |1) <> 0 |then beg|
|00002dc0| 69 6e 0d 09 09 09 09 65 | 72 72 20 3a 3d 20 66 4c |in.....e|rr := fL|
|00002dd0| 63 6b 64 45 72 72 3b 0d | 09 09 09 65 6e 64 3b 0d |ckdErr;.|...end;.|
|00002de0| 09 09 65 6e 64 3b 0d 09 | 09 49 73 46 69 6c 65 57 |..end;..|.IsFileW|
|00002df0| 72 69 74 65 61 62 6c 65 | 20 3a 3d 20 65 72 72 3b |riteable| := err;|
|00002e00| 0d 09 65 6e 64 3b 0d 0d | 09 66 75 6e 63 74 69 6f |..end;..|.functio|
|00002e10| 6e 20 48 47 65 74 44 69 | 72 41 63 63 65 73 73 20 |n HGetDi|rAccess |
|00002e20| 28 76 52 65 66 4e 75 6d | 3a 20 69 6e 74 65 67 65 |(vRefNum|: intege|
|00002e30| 72 3b 20 64 69 72 49 44 | 3a 20 6c 6f 6e 67 49 6e |r; dirID|: longIn|
|00002e40| 74 3b 20 6e 61 6d 65 3a | 20 53 74 72 69 6e 67 50 |t; name:| StringP|
|00002e50| 74 72 3b 20 76 61 72 20 | 6f 77 6e 65 72 49 44 2c |tr; var |ownerID,|
|00002e60| 20 67 72 6f 75 70 49 44 | 2c 20 61 63 63 65 73 73 | groupID|, access|
|00002e70| 52 69 67 68 74 73 3a 20 | 6c 6f 6e 67 49 6e 74 29 |Rights: |longInt)|
|00002e80| 3a 20 4f 53 45 72 72 3b | 0d 09 09 76 61 72 0d 09 |: OSErr;|...var..|
|00002e90| 09 09 70 62 3a 20 48 50 | 61 72 61 6d 42 6c 6f 63 |..pb: HP|aramBloc|
|00002ea0| 6b 52 65 63 3b 0d 09 09 | 09 65 72 72 3a 20 4f 53 |kRec;...|.err: OS|
|00002eb0| 45 72 72 3b 0d 09 62 65 | 67 69 6e 0d 09 09 70 62 |Err;..be|gin...pb|
|00002ec0| 2e 69 6f 4e 61 6d 65 50 | 74 72 20 3a 3d 20 6e 61 |.ioNameP|tr := na|
|00002ed0| 6d 65 3b 0d 09 09 70 62 | 2e 69 6f 56 52 65 66 4e |me;...pb|.ioVRefN|
|00002ee0| 75 6d 20 3a 3d 20 76 52 | 65 66 4e 75 6d 3b 0d 09 |um := vR|efNum;..|
|00002ef0| 09 70 62 2e 69 6f 44 69 | 72 49 44 20 3a 3d 20 64 |.pb.ioDi|rID := d|
|00002f00| 69 72 49 44 3b 0d 09 09 | 65 72 72 20 3a 3d 20 50 |irID;...|err := P|
|00002f10| 42 48 47 65 74 44 69 72 | 41 63 63 65 73 73 53 79 |BHGetDir|AccessSy|
|00002f20| 6e 63 28 40 70 62 29 3b | 0d 09 09 6f 77 6e 65 72 |nc(@pb);|...owner|
|00002f30| 49 44 20 3a 3d 20 70 62 | 2e 69 6f 41 43 4f 77 6e |ID := pb|.ioACOwn|
|00002f40| 65 72 49 44 3b 0d 09 09 | 67 72 6f 75 70 49 44 20 |erID;...|groupID |
|00002f50| 3a 3d 20 70 62 2e 69 6f | 41 43 47 72 6f 75 70 49 |:= pb.io|ACGroupI|
|00002f60| 44 3b 0d 09 09 61 63 63 | 65 73 73 52 69 67 68 74 |D;...acc|essRight|
|00002f70| 73 20 3a 3d 20 70 62 2e | 69 6f 41 43 41 63 63 65 |s := pb.|ioACAcce|
|00002f80| 73 73 3b 0d 09 09 48 47 | 65 74 44 69 72 41 63 63 |ss;...HG|etDirAcc|
|00002f90| 65 73 73 20 3a 3d 20 65 | 72 72 3b 0d 09 65 6e 64 |ess := e|rr;..end|
|00002fa0| 3b 0d 0d 09 66 75 6e 63 | 74 69 6f 6e 20 46 69 6c |;...func|tion Fil|
|00002fb0| 65 4c 6f 63 6b 65 64 20 | 28 66 73 73 3a 20 46 53 |eLocked |(fss: FS|
|00002fc0| 53 70 65 63 29 3a 20 62 | 6f 6f 6c 65 61 6e 3b 0d |Spec): b|oolean;.|
|00002fd0| 09 09 76 61 72 0d 09 09 | 09 6c 6f 63 6b 65 64 3a |..var...|.locked:|
|00002fe0| 20 62 6f 6f 6c 65 61 6e | 3b 0d 09 09 09 6a 75 6e | boolean|;....jun|
|00002ff0| 6b 3a 20 6c 6f 6e 67 69 | 6e 74 3b 0d 09 09 09 61 |k: longi|nt;....a|
|00003000| 63 63 65 73 73 3a 20 6c | 6f 6e 67 69 6e 74 3b 0d |ccess: l|ongint;.|
|00003010| 09 62 65 67 69 6e 0d 09 | 09 6c 6f 63 6b 65 64 20 |.begin..|.locked |
|00003020| 3a 3d 20 28 49 73 56 6f | 6c 75 6d 65 57 72 69 74 |:= (IsVo|lumeWrit|
|00003030| 65 61 62 6c 65 28 66 73 | 73 2e 76 52 65 66 4e 75 |eable(fs|s.vRefNu|
|00003040| 6d 29 20 3c 3e 20 6e 6f | 45 72 72 29 3b 0d 09 09 |m) <> no|Err);...|
|00003050| 69 66 20 6e 6f 74 20 6c | 6f 63 6b 65 64 20 74 68 |if not l|ocked th|
|00003060| 65 6e 20 62 65 67 69 6e | 0d 09 09 09 6c 6f 63 6b |en begin|....lock|
|00003070| 65 64 20 3a 3d 20 28 49 | 73 46 69 6c 65 57 72 69 |ed := (I|sFileWri|
|00003080| 74 65 61 62 6c 65 28 66 | 73 73 29 20 3c 3e 20 6e |teable(f|ss) <> n|
|00003090| 6f 45 72 72 29 3b 0d 09 | 09 65 6e 64 3b 20 28 2a |oErr);..|.end; (*|
|000030a0| 20 69 66 20 2a 29 0d 09 | 09 69 66 20 6e 6f 74 20 | if *)..|.if not |
|000030b0| 6c 6f 63 6b 65 64 20 74 | 68 65 6e 20 62 65 67 69 |locked t|hen begi|
|000030c0| 6e 0d 09 09 09 69 66 20 | 48 47 65 74 44 69 72 41 |n....if |HGetDirA|
|000030d0| 63 63 65 73 73 28 66 73 | 73 2e 76 52 65 66 4e 75 |ccess(fs|s.vRefNu|
|000030e0| 6d 2c 20 66 73 73 2e 70 | 61 72 49 44 2c 20 6e 69 |m, fss.p|arID, ni|
|000030f0| 6c 2c 20 6a 75 6e 6b 2c | 20 6a 75 6e 6b 2c 20 61 |l, junk,| junk, a|
|00003100| 63 63 65 73 73 29 20 3d | 20 6e 6f 45 72 72 20 74 |ccess) =| noErr t|
|00003110| 68 65 6e 20 62 65 67 69 | 6e 0d 09 09 09 09 6c 6f |hen begi|n.....lo|
|00003120| 63 6b 65 64 20 3a 3d 20 | 6e 6f 74 20 54 50 62 74 |cked := |not TPbt|
|00003130| 73 74 28 61 63 63 65 73 | 73 2c 20 32 36 29 3b 0d |st(acces|s, 26);.|
|00003140| 09 09 09 65 6e 64 3b 20 | 28 2a 20 69 66 20 2a 29 |...end; |(* if *)|
|00003150| 0d 09 09 65 6e 64 3b 20 | 28 2a 20 69 66 20 2a 29 |...end; |(* if *)|
|00003160| 0d 09 09 46 69 6c 65 4c | 6f 63 6b 65 64 20 3a 3d |...FileL|ocked :=|
|00003170| 20 6c 6f 63 6b 65 64 3b | 0d 09 65 6e 64 3b 20 28 | locked;|..end; (|
|00003180| 2a 20 46 69 6c 65 4c 6f | 63 6b 65 64 20 2a 29 0d |* FileLo|cked *).|
|00003190| 0d 09 70 72 6f 63 65 64 | 75 72 65 20 4c 53 65 74 |..proced|ure LSet|
|000031a0| 4e 6f 53 65 6c 65 63 74 | 69 6f 6e 20 28 6c 69 73 |NoSelect|ion (lis|
|000031b0| 74 3a 20 4c 69 73 74 48 | 61 6e 64 6c 65 29 3b 0d |t: ListH|andle);.|
|000031c0| 09 09 76 61 72 0d 09 09 | 09 63 3a 20 43 65 6c 6c |..var...|.c: Cell|
|000031d0| 3b 0d 09 62 65 67 69 6e | 0d 09 09 63 2e 76 20 3a |;..begin|...c.v :|
|000031e0| 3d 20 30 3b 0d 09 09 63 | 2e 68 20 3a 3d 20 30 3b |= 0;...c|.h := 0;|
|000031f0| 0d 09 09 77 68 69 6c 65 | 20 4c 47 65 74 53 65 6c |...while| LGetSel|
|00003200| 65 63 74 28 74 72 75 65 | 2c 20 63 2c 20 6c 69 73 |ect(true|, c, lis|
|00003210| 74 29 20 64 6f 20 62 65 | 67 69 6e 0d 09 09 09 4c |t) do be|gin....L|
|00003220| 53 65 74 53 65 6c 65 63 | 74 28 66 61 6c 73 65 2c |SetSelec|t(false,|
|00003230| 20 63 2c 20 6c 69 73 74 | 29 3b 0d 09 09 09 63 2e | c, list|);....c.|
|00003240| 76 20 3a 3d 20 63 2e 76 | 20 2b 20 31 3b 0d 09 09 |v := c.v| + 1;...|
|00003250| 09 63 2e 68 20 3a 3d 20 | 30 3b 0d 09 09 65 6e 64 |.c.h := |0;...end|
|00003260| 3b 0d 09 65 6e 64 3b 0d | 0d 09 70 72 6f 63 65 64 |;..end;.|..proced|
|00003270| 75 72 65 20 4c 53 65 74 | 53 69 6e 67 6c 65 53 65 |ure LSet|SingleSe|
|00003280| 6c 65 63 74 69 6f 6e 20 | 28 6c 69 73 74 3a 20 4c |lection |(list: L|
|00003290| 69 73 74 48 61 6e 64 6c | 65 3b 20 76 3a 20 69 6e |istHandl|e; v: in|
|000032a0| 74 65 67 65 72 29 3b 0d | 09 09 76 61 72 0d 09 09 |teger);.|..var...|
|000032b0| 09 63 3a 20 43 65 6c 6c | 3b 0d 09 62 65 67 69 6e |.c: Cell|;..begin|
|000032c0| 0d 09 09 63 2e 68 20 3a | 3d 20 30 3b 0d 09 09 63 |...c.h :|= 0;...c|
|000032d0| 2e 76 20 3a 3d 20 76 3b | 0d 09 09 4c 53 65 74 53 |.v := v;|...LSetS|
|000032e0| 65 6c 65 63 74 28 74 72 | 75 65 2c 20 63 2c 20 6c |elect(tr|ue, c, l|
|000032f0| 69 73 74 29 3b 0d 09 09 | 63 2e 76 20 3a 3d 20 30 |ist);...|c.v := 0|
|00003300| 3b 0d 09 09 63 2e 68 20 | 3a 3d 20 30 3b 0d 09 09 |;...c.h |:= 0;...|
|00003310| 77 68 69 6c 65 20 4c 47 | 65 74 53 65 6c 65 63 74 |while LG|etSelect|
|00003320| 28 74 72 75 65 2c 20 63 | 2c 20 6c 69 73 74 29 20 |(true, c|, list) |
|00003330| 64 6f 20 62 65 67 69 6e | 0d 09 09 09 69 66 20 63 |do begin|....if c|
|00003340| 2e 76 20 3c 3e 20 76 20 | 74 68 65 6e 20 62 65 67 |.v <> v |then beg|
|00003350| 69 6e 0d 09 09 09 09 4c | 53 65 74 53 65 6c 65 63 |in.....L|SetSelec|
|00003360| 74 28 66 61 6c 73 65 2c | 20 63 2c 20 6c 69 73 74 |t(false,| c, list|
|00003370| 29 3b 0d 09 09 09 65 6e | 64 3b 0d 09 09 09 63 2e |);....en|d;....c.|
|00003380| 76 20 3a 3d 20 63 2e 76 | 20 2b 20 31 3b 0d 09 09 |v := c.v| + 1;...|
|00003390| 09 63 2e 68 20 3a 3d 20 | 30 3b 0d 09 09 65 6e 64 |.c.h := |0;...end|
|000033a0| 3b 0d 09 09 4c 41 75 74 | 6f 53 63 72 6f 6c 6c 28 |;...LAut|oScroll(|
|000033b0| 6c 69 73 74 29 3b 0d 09 | 65 6e 64 3b 0d 0d 09 66 |list);..|end;...f|
|000033c0| 75 6e 63 74 69 6f 6e 20 | 4c 47 65 74 55 6e 69 71 |unction |LGetUniq|
|000033d0| 75 65 45 6e 74 72 79 4e | 61 6d 65 20 28 6c 69 73 |ueEntryN|ame (lis|
|000033e0| 74 3a 20 4c 69 73 74 48 | 61 6e 64 6c 65 3b 20 63 |t: ListH|andle; c|
|000033f0| 3a 20 63 65 6c 6c 3b 20 | 67 65 74 65 6e 74 72 79 |: cell; |getentry|
|00003400| 6e 61 6d 65 3a 20 47 65 | 74 45 6e 74 72 79 4e 61 |name: Ge|tEntryNa|
|00003410| 6d 65 50 72 6f 63 54 79 | 70 65 29 3a 20 73 74 72 |meProcTy|pe): str|
|00003420| 32 35 35 3b 0d 09 09 76 | 61 72 0d 09 09 09 73 3a |255;...v|ar....s:|
|00003430| 20 73 74 72 32 35 35 3b | 0d 09 62 65 67 69 6e 0d | str255;|..begin.|
|00003440| 09 09 73 20 3a 3d 20 27 | 27 3b 0d 09 09 69 66 20 |..s := '|';...if |
|00003450| 67 65 74 65 6e 74 72 79 | 6e 61 6d 65 20 3c 3e 20 |getentry|name <> |
|00003460| 6e 69 6c 20 74 68 65 6e | 20 62 65 67 69 6e 0d 09 |nil then| begin..|
|00003470| 09 09 73 20 3a 3d 20 67 | 65 74 65 6e 74 72 79 6e |..s := g|etentryn|
|00003480| 61 6d 65 28 6c 69 73 74 | 2c 20 63 29 3b 0d 09 09 |ame(list|, c);...|
|00003490| 65 6e 64 3b 0d 09 09 4c | 47 65 74 55 6e 69 71 75 |end;...L|GetUniqu|
|000034a0| 65 45 6e 74 72 79 4e 61 | 6d 65 20 3a 3d 20 63 6f |eEntryNa|me := co|
|000034b0| 6e 63 61 74 28 73 2c 20 | 63 68 72 28 30 29 2c 20 |ncat(s, |chr(0), |
|000034c0| 63 68 72 28 63 2e 76 20 | 64 69 76 20 32 35 36 29 |chr(c.v |div 256)|
|000034d0| 2c 20 63 68 72 28 63 2e | 76 20 6d 6f 64 20 32 35 |, chr(c.|v mod 25|
|000034e0| 36 29 29 3b 0d 09 65 6e | 64 3b 0d 0d 09 66 75 6e |6));..en|d;...fun|
|000034f0| 63 74 69 6f 6e 20 4c 47 | 65 74 46 69 72 73 74 53 |ction LG|etFirstS|
|00003500| 65 6c 65 63 74 69 6f 6e | 20 28 6c 69 73 74 3a 20 |election| (list: |
|00003510| 4c 69 73 74 48 61 6e 64 | 6c 65 3b 20 76 61 72 20 |ListHand|le; var |
|00003520| 63 3a 20 43 65 6c 6c 3b | 20 67 65 74 65 6e 74 72 |c: Cell;| getentr|
|00003530| 79 6e 61 6d 65 3a 20 47 | 65 74 45 6e 74 72 79 4e |yname: G|etEntryN|
|00003540| 61 6d 65 50 72 6f 63 54 | 79 70 65 29 3a 20 62 6f |ameProcT|ype): bo|
|00003550| 6f 6c 65 61 6e 3b 0d 09 | 09 76 61 72 0d 09 09 09 |olean;..|.var....|
|00003560| 62 65 73 74 2c 20 6e 3a | 20 73 74 72 32 35 35 3b |best, n:| str255;|
|00003570| 0d 09 09 09 69 6e 64 65 | 78 3a 20 69 6e 74 65 67 |....inde|x: integ|
|00003580| 65 72 3b 0d 09 62 65 67 | 69 6e 0d 09 09 4c 47 65 |er;..beg|in...LGe|
|00003590| 74 46 69 72 73 74 53 65 | 6c 65 63 74 69 6f 6e 20 |tFirstSe|lection |
|000035a0| 3a 3d 20 66 61 6c 73 65 | 3b 0d 09 09 63 2e 68 20 |:= false|;...c.h |
|000035b0| 3a 3d 20 30 3b 0d 09 09 | 63 2e 76 20 3a 3d 20 30 |:= 0;...|c.v := 0|
|000035c0| 3b 0d 09 09 62 65 73 74 | 20 3a 3d 20 63 6f 6e 63 |;...best| := conc|
|000035d0| 61 74 28 63 68 72 28 32 | 35 35 29 2c 20 63 68 72 |at(chr(2|55), chr|
|000035e0| 28 32 35 35 29 29 3b 0d | 09 09 77 68 69 6c 65 20 |(255));.|..while |
|000035f0| 4c 47 65 74 53 65 6c 65 | 63 74 28 74 72 75 65 2c |LGetSele|ct(true,|
|00003600| 20 63 2c 20 6c 69 73 74 | 29 20 64 6f 20 62 65 67 | c, list|) do beg|
|00003610| 69 6e 0d 09 09 09 4c 47 | 65 74 46 69 72 73 74 53 |in....LG|etFirstS|
|00003620| 65 6c 65 63 74 69 6f 6e | 20 3a 3d 20 74 72 75 65 |election| := true|
|00003630| 3b 0d 09 09 09 6e 20 3a | 3d 20 67 65 74 65 6e 74 |;....n :|= getent|
|00003640| 72 79 6e 61 6d 65 28 6c | 69 73 74 2c 20 63 29 3b |ryname(l|ist, c);|
|00003650| 0d 09 09 09 69 66 20 49 | 55 43 6f 6d 70 53 74 72 |....if I|UCompStr|
|00003660| 69 6e 67 28 6e 2c 20 62 | 65 73 74 29 20 3c 20 30 |ing(n, b|est) < 0|
|00003670| 20 74 68 65 6e 20 62 65 | 67 69 6e 0d 09 09 09 09 | then be|gin.....|
|00003680| 69 6e 64 65 78 20 3a 3d | 20 63 2e 76 3b 0d 09 09 |index :=| c.v;...|
|00003690| 09 09 62 65 73 74 20 3a | 3d 20 6e 3b 0d 09 09 09 |..best :|= n;....|
|000036a0| 65 6e 64 3b 0d 09 09 09 | 63 2e 76 20 3a 3d 20 63 |end;....|c.v := c|
|000036b0| 2e 76 20 2b 20 31 3b 0d | 09 09 65 6e 64 3b 0d 09 |.v + 1;.|..end;..|
|000036c0| 09 63 2e 68 20 3a 3d 20 | 30 3b 0d 09 09 63 2e 76 |.c.h := |0;...c.v|
|000036d0| 20 3a 3d 20 69 6e 64 65 | 78 3b 0d 09 65 6e 64 3b | := inde|x;..end;|
|000036e0| 0d 0d 09 66 75 6e 63 74 | 69 6f 6e 20 4c 53 65 6c |...funct|ion LSel|
|000036f0| 65 63 74 46 69 72 73 74 | 42 65 66 6f 72 65 20 28 |ectFirst|Before (|
|00003700| 6c 69 73 74 3a 20 4c 69 | 73 74 48 61 6e 64 6c 65 |list: Li|stHandle|
|00003710| 3b 20 73 3a 20 73 74 72 | 32 35 35 3b 20 67 65 74 |; s: str|255; get|
|00003720| 65 6e 74 72 79 6e 61 6d | 65 3a 20 47 65 74 45 6e |entrynam|e: GetEn|
|00003730| 74 72 79 4e 61 6d 65 50 | 72 6f 63 54 79 70 65 29 |tryNameP|rocType)|
|00003740| 3a 20 62 6f 6f 6c 65 61 | 6e 3b 0d 09 09 76 61 72 |: boolea|n;...var|
|00003750| 0d 09 09 09 69 2c 20 69 | 6e 64 65 78 3a 20 69 6e |....i, i|ndex: in|
|00003760| 74 65 67 65 72 3b 0d 09 | 09 09 63 3a 20 43 65 6c |teger;..|..c: Cel|
|00003770| 6c 3b 0d 09 09 09 62 65 | 73 74 2c 20 6e 3a 20 73 |l;....be|st, n: s|
|00003780| 74 72 32 35 35 3b 0d 09 | 09 09 67 6f 6f 64 3a 20 |tr255;..|..good: |
|00003790| 62 6f 6f 6c 65 61 6e 3b | 0d 09 62 65 67 69 6e 0d |boolean;|..begin.|
|000037a0| 09 09 67 6f 6f 64 20 3a | 3d 20 66 61 6c 73 65 3b |..good :|= false;|
|000037b0| 0d 09 09 69 6e 64 65 78 | 20 3a 3d 20 30 3b 0d 09 |...index| := 0;..|
|000037c0| 09 62 65 73 74 20 3a 3d | 20 27 27 3b 0d 09 09 66 |.best :=| '';...f|
|000037d0| 6f 72 20 69 20 3a 3d 20 | 30 20 74 6f 20 6c 69 73 |or i := |0 to lis|
|000037e0| 74 5e 5e 2e 64 61 74 61 | 62 6f 75 6e 64 73 2e 62 |t^^.data|bounds.b|
|000037f0| 6f 74 74 6f 6d 20 2d 20 | 31 20 64 6f 20 62 65 67 |ottom - |1 do beg|
|00003800| 69 6e 0d 09 09 09 63 2e | 68 20 3a 3d 20 30 3b 0d |in....c.|h := 0;.|
|00003810| 09 09 09 63 2e 76 20 3a | 3d 20 69 3b 0d 09 09 09 |...c.v :|= i;....|
|00003820| 6e 20 3a 3d 20 67 65 74 | 65 6e 74 72 79 6e 61 6d |n := get|entrynam|
|00003830| 65 28 6c 69 73 74 2c 20 | 63 29 3b 0d 09 09 09 69 |e(list, |c);....i|
|00003840| 66 20 28 49 55 43 6f 6d | 70 53 74 72 69 6e 67 28 |f (IUCom|pString(|
|00003850| 73 2c 20 6e 29 20 3e 20 | 30 29 20 26 20 28 49 55 |s, n) > |0) & (IU|
|00003860| 43 6f 6d 70 53 74 72 69 | 6e 67 28 6e 2c 20 62 65 |CompStri|ng(n, be|
|00003870| 73 74 29 20 3e 20 30 29 | 20 74 68 65 6e 20 62 65 |st) > 0)| then be|
|00003880| 67 69 6e 0d 09 09 09 09 | 62 65 73 74 20 3a 3d 20 |gin.....|best := |
|00003890| 6e 3b 0d 09 09 09 09 69 | 6e 64 65 78 20 3a 3d 20 |n;.....i|ndex := |
|000038a0| 63 2e 76 3b 0d 09 09 09 | 09 67 6f 6f 64 20 3a 3d |c.v;....|.good :=|
|000038b0| 20 74 72 75 65 3b 0d 09 | 09 09 65 6e 64 3b 0d 09 | true;..|..end;..|
|000038c0| 09 65 6e 64 3b 0d 09 09 | 69 66 20 67 6f 6f 64 20 |.end;...|if good |
|000038d0| 74 68 65 6e 20 62 65 67 | 69 6e 0d 09 09 09 4c 53 |then beg|in....LS|
|000038e0| 65 74 53 69 6e 67 6c 65 | 53 65 6c 65 63 74 69 6f |etSingle|Selectio|
|000038f0| 6e 28 6c 69 73 74 2c 20 | 69 6e 64 65 78 29 3b 0d |n(list, |index);.|
|00003900| 09 09 65 6e 64 3b 0d 09 | 09 4c 53 65 6c 65 63 74 |..end;..|.LSelect|
|00003910| 46 69 72 73 74 42 65 66 | 6f 72 65 20 3a 3d 20 67 |FirstBef|ore := g|
|00003920| 6f 6f 64 3b 0d 09 65 6e | 64 3b 0d 0d 09 66 75 6e |ood;..en|d;...fun|
|00003930| 63 74 69 6f 6e 20 4c 47 | 65 74 4c 61 73 74 53 65 |ction LG|etLastSe|
|00003940| 6c 65 63 74 69 6f 6e 20 | 28 6c 69 73 74 3a 20 4c |lection |(list: L|
|00003950| 69 73 74 48 61 6e 64 6c | 65 3b 20 76 61 72 20 63 |istHandl|e; var c|
|00003960| 3a 20 43 65 6c 6c 3b 20 | 67 65 74 65 6e 74 72 79 |: Cell; |getentry|
|00003970| 6e 61 6d 65 3a 20 47 65 | 74 45 6e 74 72 79 4e 61 |name: Ge|tEntryNa|
|00003980| 6d 65 50 72 6f 63 54 79 | 70 65 29 3a 20 62 6f 6f |meProcTy|pe): boo|
|00003990| 6c 65 61 6e 3b 0d 09 09 | 76 61 72 0d 09 09 09 62 |lean;...|var....b|
|000039a0| 65 73 74 2c 20 6e 3a 20 | 73 74 72 32 35 35 3b 0d |est, n: |str255;.|
|000039b0| 09 09 09 69 6e 64 65 78 | 3a 20 69 6e 74 65 67 65 |...index|: intege|
|000039c0| 72 3b 0d 09 62 65 67 69 | 6e 0d 09 09 4c 47 65 74 |r;..begi|n...LGet|
|000039d0| 4c 61 73 74 53 65 6c 65 | 63 74 69 6f 6e 20 3a 3d |LastSele|ction :=|
|000039e0| 20 66 61 6c 73 65 3b 0d | 09 09 63 2e 68 20 3a 3d | false;.|..c.h :=|
|000039f0| 20 30 3b 0d 09 09 63 2e | 76 20 3a 3d 20 30 3b 0d | 0;...c.|v := 0;.|
|00003a00| 09 09 62 65 73 74 20 3a | 3d 20 27 27 3b 0d 09 09 |..best :|= '';...|
|00003a10| 77 68 69 6c 65 20 4c 47 | 65 74 53 65 6c 65 63 74 |while LG|etSelect|
|00003a20| 28 74 72 75 65 2c 20 63 | 2c 20 6c 69 73 74 29 20 |(true, c|, list) |
|00003a30| 64 6f 20 62 65 67 69 6e | 0d 09 09 09 4c 47 65 74 |do begin|....LGet|
|00003a40| 4c 61 73 74 53 65 6c 65 | 63 74 69 6f 6e 20 3a 3d |LastSele|ction :=|
|00003a50| 20 74 72 75 65 3b 0d 09 | 09 09 6e 20 3a 3d 20 67 | true;..|..n := g|
|00003a60| 65 74 65 6e 74 72 79 6e | 61 6d 65 28 6c 69 73 74 |etentryn|ame(list|
|00003a70| 2c 20 63 29 3b 0d 09 09 | 09 69 66 20 49 55 43 6f |, c);...|.if IUCo|
|00003a80| 6d 70 53 74 72 69 6e 67 | 28 6e 2c 20 62 65 73 74 |mpString|(n, best|
|00003a90| 29 20 3e 20 30 20 74 68 | 65 6e 20 62 65 67 69 6e |) > 0 th|en begin|
|00003aa0| 0d 09 09 09 09 69 6e 64 | 65 78 20 3a 3d 20 63 2e |.....ind|ex := c.|
|00003ab0| 76 3b 0d 09 09 09 09 62 | 65 73 74 20 3a 3d 20 6e |v;.....b|est := n|
|00003ac0| 3b 0d 09 09 09 65 6e 64 | 3b 0d 09 09 09 63 2e 76 |;....end|;....c.v|
|00003ad0| 20 3a 3d 20 63 2e 76 20 | 2b 20 31 3b 0d 09 09 65 | := c.v |+ 1;...e|
|00003ae0| 6e 64 3b 0d 09 09 63 2e | 68 20 3a 3d 20 30 3b 0d |nd;...c.|h := 0;.|
|00003af0| 09 09 63 2e 76 20 3a 3d | 20 69 6e 64 65 78 3b 0d |..c.v :=| index;.|
|00003b00| 09 65 6e 64 3b 0d 0d 09 | 66 75 6e 63 74 69 6f 6e |.end;...|function|
|00003b10| 20 4c 53 65 6c 65 63 74 | 46 69 72 73 74 41 66 74 | LSelect|FirstAft|
|00003b20| 65 72 20 28 6c 69 73 74 | 3a 20 4c 69 73 74 48 61 |er (list|: ListHa|
|00003b30| 6e 64 6c 65 3b 20 73 3a | 20 73 74 72 32 35 35 3b |ndle; s:| str255;|
|00003b40| 20 67 65 74 65 6e 74 72 | 79 6e 61 6d 65 3a 20 47 | getentr|yname: G|
|00003b50| 65 74 45 6e 74 72 79 4e | 61 6d 65 50 72 6f 63 54 |etEntryN|ameProcT|
|00003b60| 79 70 65 3b 20 6f 72 65 | 71 75 61 6c 3a 42 6f 6f |ype; ore|qual:Boo|
|00003b70| 6c 65 61 6e 29 3a 20 62 | 6f 6f 6c 65 61 6e 3b 0d |lean): b|oolean;.|
|00003b80| 09 09 76 61 72 0d 09 09 | 09 69 2c 20 69 6e 64 65 |..var...|.i, inde|
|00003b90| 78 3a 20 69 6e 74 65 67 | 65 72 3b 0d 09 09 09 63 |x: integ|er;....c|
|00003ba0| 3a 20 43 65 6c 6c 3b 0d | 09 09 09 62 65 73 74 2c |: Cell;.|...best,|
|00003bb0| 20 6e 3a 20 73 74 72 32 | 35 35 3b 0d 09 09 09 67 | n: str2|55;....g|
|00003bc0| 6f 6f 64 3a 20 62 6f 6f | 6c 65 61 6e 3b 0d 09 09 |ood: boo|lean;...|
|00003bd0| 09 63 6f 6d 70 3a 20 69 | 6e 74 65 67 65 72 3b 0d |.comp: i|nteger;.|
|00003be0| 09 62 65 67 69 6e 0d 09 | 09 67 6f 6f 64 20 3a 3d |.begin..|.good :=|
|00003bf0| 20 66 61 6c 73 65 3b 0d | 09 09 62 65 73 74 20 3a | false;.|..best :|
|00003c00| 3d 20 63 6f 6e 63 61 74 | 28 63 68 72 28 32 35 35 |= concat|(chr(255|
|00003c10| 29 2c 20 63 68 72 28 32 | 35 35 29 29 3b 0d 09 09 |), chr(2|55));...|
|00003c20| 66 6f 72 20 69 20 3a 3d | 20 30 20 74 6f 20 6c 69 |for i :=| 0 to li|
|00003c30| 73 74 5e 5e 2e 64 61 74 | 61 62 6f 75 6e 64 73 2e |st^^.dat|abounds.|
|00003c40| 62 6f 74 74 6f 6d 20 2d | 20 31 20 64 6f 20 62 65 |bottom -| 1 do be|
|00003c50| 67 69 6e 0d 09 09 09 63 | 2e 68 20 3a 3d 20 30 3b |gin....c|.h := 0;|
|00003c60| 0d 09 09 09 63 2e 76 20 | 3a 3d 20 69 3b 0d 09 09 |....c.v |:= i;...|
|00003c70| 09 6e 20 3a 3d 20 67 65 | 74 65 6e 74 72 79 6e 61 |.n := ge|tentryna|
|00003c80| 6d 65 28 6c 69 73 74 2c | 20 63 29 3b 0d 09 09 09 |me(list,| c);....|
|00003c90| 63 6f 6d 70 20 3a 3d 20 | 49 55 43 6f 6d 70 53 74 |comp := |IUCompSt|
|00003ca0| 72 69 6e 67 28 73 2c 20 | 6e 29 3b 0d 09 09 09 69 |ring(s, |n);....i|
|00003cb0| 66 20 28 28 63 6f 6d 70 | 20 3c 20 30 29 20 7c 20 |f ((comp| < 0) | |
|00003cc0| 28 28 63 6f 6d 70 20 3d | 20 30 29 20 26 20 6f 72 |((comp =| 0) & or|
|00003cd0| 65 71 75 61 6c 29 29 20 | 26 20 28 49 55 43 6f 6d |equal)) |& (IUCom|
|00003ce0| 70 53 74 72 69 6e 67 28 | 6e 2c 20 62 65 73 74 29 |pString(|n, best)|
|00003cf0| 20 3c 20 30 29 20 74 68 | 65 6e 20 62 65 67 69 6e | < 0) th|en begin|
|00003d00| 0d 09 09 09 09 62 65 73 | 74 20 3a 3d 20 6e 3b 0d |.....bes|t := n;.|
|00003d10| 09 09 09 09 69 6e 64 65 | 78 20 3a 3d 20 63 2e 76 |....inde|x := c.v|
|00003d20| 3b 0d 09 09 09 09 67 6f | 6f 64 20 3a 3d 20 74 72 |;.....go|od := tr|
|00003d30| 75 65 3b 0d 09 09 09 65 | 6e 64 3b 0d 09 09 65 6e |ue;....e|nd;...en|
|00003d40| 64 3b 0d 09 09 69 66 20 | 67 6f 6f 64 20 74 68 65 |d;...if |good the|
|00003d50| 6e 20 62 65 67 69 6e 0d | 09 09 09 4c 53 65 74 53 |n begin.|...LSetS|
|00003d60| 69 6e 67 6c 65 53 65 6c | 65 63 74 69 6f 6e 28 6c |ingleSel|ection(l|
|00003d70| 69 73 74 2c 20 69 6e 64 | 65 78 29 3b 0d 09 09 65 |ist, ind|ex);...e|
|00003d80| 6e 64 3b 0d 09 09 4c 53 | 65 6c 65 63 74 46 69 72 |nd;...LS|electFir|
|00003d90| 73 74 41 66 74 65 72 20 | 3a 3d 20 67 6f 6f 64 3b |stAfter |:= good;|
|00003da0| 0d 09 65 6e 64 3b 0d 0d | 09 70 72 6f 63 65 64 75 |..end;..|.procedu|
|00003db0| 72 65 20 44 6f 4c 69 73 | 74 4b 65 79 20 28 6c 69 |re DoLis|tKey (li|
|00003dc0| 73 74 3a 20 4c 69 73 74 | 48 61 6e 64 6c 65 3b 20 |st: List|Handle; |
|00003dd0| 76 61 72 20 65 72 3a 45 | 76 65 6e 74 52 65 63 6f |var er:E|ventReco|
|00003de0| 72 64 3b 20 67 65 74 65 | 6e 74 72 79 6e 61 6d 65 |rd; gete|ntryname|
|00003df0| 3a 20 47 65 74 45 6e 74 | 72 79 4e 61 6d 65 50 72 |: GetEnt|ryNamePr|
|00003e00| 6f 63 54 79 70 65 29 3b | 0d 09 09 76 61 72 0d 09 |ocType);|...var..|
|00003e10| 09 09 63 3a 20 43 65 6c | 6c 3b 0d 09 09 09 69 6e |..c: Cel|l;....in|
|00003e20| 64 65 78 3a 20 69 6e 74 | 65 67 65 72 3b 0d 09 09 |dex: int|eger;...|
|00003e30| 09 64 75 6d 6d 79 3a 20 | 62 6f 6f 6c 65 61 6e 3b |.dummy: |boolean;|
|00003e40| 0d 09 09 09 63 75 72 74 | 69 63 6b 73 3a 20 6c 6f |....curt|icks: lo|
|00003e50| 6e 67 49 6e 74 3b 0d 09 | 09 09 63 68 3a 63 68 61 |ngInt;..|..ch:cha|
|00003e60| 72 3b 0d 09 09 09 73 3a | 53 74 72 32 35 35 3b 0d |r;....s:|Str255;.|
|00003e70| 09 09 09 66 6f 75 6e 64 | 3a 42 6f 6f 6c 65 61 6e |...found|:Boolean|
|00003e80| 3b 0d 09 62 65 67 69 6e | 0d 09 09 63 75 72 74 69 |;..begin|...curti|
|00003e90| 63 6b 73 20 3a 3d 20 65 | 72 2e 77 68 65 6e 3b 0d |cks := e|r.when;.|
|00003ea0| 09 09 63 68 20 3a 3d 20 | 63 68 72 28 42 41 4e 44 |..ch := |chr(BAND|
|00003eb0| 28 65 72 2e 6d 65 73 73 | 61 67 65 2c 20 24 46 46 |(er.mess|age, $FF|
|00003ec0| 29 29 3b 0d 09 09 69 66 | 20 28 74 79 70 65 64 5f |));...if| (typed_|
|00003ed0| 6c 68 20 3c 3e 20 6c 69 | 73 74 29 20 6f 72 20 28 |lh <> li|st) or (|
|00003ee0| 63 68 20 3c 20 27 20 27 | 29 20 74 68 65 6e 20 62 |ch < ' '|) then b|
|00003ef0| 65 67 69 6e 0d 09 09 09 | 74 79 70 65 64 5f 74 69 |egin....|typed_ti|
|00003f00| 6d 65 20 3a 3d 20 30 3b | 0d 09 09 09 74 79 70 65 |me := 0;|....type|
|00003f10| 64 5f 6c 68 20 3a 3d 20 | 6c 69 73 74 3b 0d 09 09 |d_lh := |list;...|
|00003f20| 65 6e 64 3b 0d 09 09 63 | 61 73 65 20 6f 72 64 28 |end;...c|ase ord(|
|00003f30| 63 68 29 20 6f 66 0d 09 | 09 09 64 6f 77 6e 41 72 |ch) of..|..downAr|
|00003f40| 72 6f 77 43 68 61 72 3a | 20 20 62 65 67 69 6e 0d |rowChar:| begin.|
|00003f50| 09 09 09 09 63 2e 68 20 | 3a 3d 20 30 3b 0d 09 09 |....c.h |:= 0;...|
|00003f60| 09 09 63 2e 76 20 3a 3d | 20 30 3b 0d 09 09 09 09 |..c.v :=| 0;.....|
|00003f70| 69 6e 64 65 78 20 3a 3d | 20 30 3b 0d 09 09 09 09 |index :=| 0;.....|
|00003f80| 77 68 69 6c 65 20 4c 47 | 65 74 53 65 6c 65 63 74 |while LG|etSelect|
|00003f90| 28 74 72 75 65 2c 20 63 | 2c 20 6c 69 73 74 29 20 |(true, c|, list) |
|00003fa0| 64 6f 20 62 65 67 69 6e | 0d 09 09 09 09 09 63 2e |do begin|......c.|
|00003fb0| 76 20 3a 3d 20 63 2e 76 | 20 2b 20 31 3b 0d 09 09 |v := c.v| + 1;...|
|00003fc0| 09 09 09 69 6e 64 65 78 | 20 3a 3d 20 63 2e 76 3b |...index| := c.v;|
|00003fd0| 0d 09 09 09 09 65 6e 64 | 3b 0d 09 09 09 09 69 66 |.....end|;.....if|
|00003fe0| 20 69 6e 64 65 78 20 3e | 3d 20 6c 69 73 74 5e 5e | index >|= list^^|
|00003ff0| 2e 64 61 74 61 42 6f 75 | 6e 64 73 2e 62 6f 74 74 |.dataBou|nds.bott|
|00004000| 6f 6d 20 74 68 65 6e 20 | 62 65 67 69 6e 0d 09 09 |om then |begin...|
|00004010| 09 09 09 69 6e 64 65 78 | 20 3a 3d 20 6c 69 73 74 |...index| := list|
|00004020| 5e 5e 2e 64 61 74 61 42 | 6f 75 6e 64 73 2e 62 6f |^^.dataB|ounds.bo|
|00004030| 74 74 6f 6d 20 2d 20 31 | 3b 0d 09 09 09 09 65 6e |ttom - 1|;.....en|
|00004040| 64 3b 0d 09 09 09 09 4c | 53 65 74 53 69 6e 67 6c |d;.....L|SetSingl|
|00004050| 65 53 65 6c 65 63 74 69 | 6f 6e 28 6c 69 73 74 2c |eSelecti|on(list,|
|00004060| 20 69 6e 64 65 78 29 3b | 0d 09 09 09 09 4c 41 75 | index);|.....LAu|
|00004070| 74 6f 53 63 72 6f 6c 6c | 28 6c 69 73 74 29 3b 0d |toScroll|(list);.|
|00004080| 09 09 09 65 6e 64 3b 0d | 09 09 09 75 70 41 72 72 |...end;.|...upArr|
|00004090| 6f 77 43 68 61 72 3a 20 | 20 62 65 67 69 6e 0d 09 |owChar: | begin..|
|000040a0| 09 09 09 63 2e 68 20 3a | 3d 20 30 3b 0d 09 09 09 |...c.h :|= 0;....|
|000040b0| 09 63 2e 76 20 3a 3d 20 | 30 3b 0d 09 09 09 09 69 |.c.v := |0;.....i|
|000040c0| 66 20 6e 6f 74 20 4c 47 | 65 74 53 65 6c 65 63 74 |f not LG|etSelect|
|000040d0| 28 74 72 75 65 2c 20 63 | 2c 20 6c 69 73 74 29 20 |(true, c|, list) |
|000040e0| 74 68 65 6e 20 62 65 67 | 69 6e 0d 09 09 09 09 09 |then beg|in......|
|000040f0| 63 2e 76 20 3a 3d 20 6c | 69 73 74 5e 5e 2e 64 61 |c.v := l|ist^^.da|
|00004100| 74 61 42 6f 75 6e 64 73 | 2e 62 6f 74 74 6f 6d 3b |taBounds|.bottom;|
|00004110| 0d 09 09 09 09 65 6e 64 | 3b 0d 09 09 09 09 69 66 |.....end|;.....if|
|00004120| 20 63 2e 76 20 3e 20 30 | 20 74 68 65 6e 20 62 65 | c.v > 0| then be|
|00004130| 67 69 6e 0d 09 09 09 09 | 09 63 2e 76 20 3a 3d 20 |gin.....|.c.v := |
|00004140| 63 2e 76 20 2d 20 31 3b | 0d 09 09 09 09 65 6e 64 |c.v - 1;|.....end|
|00004150| 3b 0d 09 09 09 09 4c 53 | 65 74 53 69 6e 67 6c 65 |;.....LS|etSingle|
|00004160| 53 65 6c 65 63 74 69 6f | 6e 28 6c 69 73 74 2c 20 |Selectio|n(list, |
|00004170| 63 2e 76 29 3b 0d 09 09 | 09 09 4c 41 75 74 6f 53 |c.v);...|..LAutoS|
|00004180| 63 72 6f 6c 6c 28 6c 69 | 73 74 29 3b 0d 09 09 09 |croll(li|st);....|
|00004190| 65 6e 64 3b 0d 09 09 09 | 68 6f 6d 65 43 68 61 72 |end;....|homeChar|
|000041a0| 3a 20 20 62 65 67 69 6e | 0d 09 09 09 09 4c 53 63 |: begin|.....LSc|
|000041b0| 72 6f 6c 6c 28 30 2c 20 | 2d 6c 69 73 74 5e 5e 2e |roll(0, |-list^^.|
|000041c0| 64 61 74 61 42 6f 75 6e | 64 73 2e 62 6f 74 74 6f |dataBoun|ds.botto|
|000041d0| 6d 2c 20 6c 69 73 74 29 | 3b 0d 09 09 09 65 6e 64 |m, list)|;....end|
|000041e0| 3b 0d 09 09 09 65 6e 64 | 43 68 61 72 3a 20 20 62 |;....end|Char: b|
|000041f0| 65 67 69 6e 0d 09 09 09 | 09 4c 53 63 72 6f 6c 6c |egin....|.LScroll|
|00004200| 28 30 2c 20 6c 69 73 74 | 5e 5e 2e 64 61 74 61 42 |(0, list|^^.dataB|
|00004210| 6f 75 6e 64 73 2e 62 6f | 74 74 6f 6d 2c 20 6c 69 |ounds.bo|ttom, li|
|00004220| 73 74 29 3b 0d 09 09 09 | 65 6e 64 3b 0d 09 09 09 |st);....|end;....|
|00004230| 70 61 67 65 55 70 43 68 | 61 72 3a 20 20 62 65 67 |pageUpCh|ar: beg|
|00004240| 69 6e 0d 09 09 09 09 4c | 53 63 72 6f 6c 6c 28 30 |in.....L|Scroll(0|
|00004250| 2c 20 2d 28 6c 69 73 74 | 5e 5e 2e 76 69 73 69 62 |, -(list|^^.visib|
|00004260| 6c 65 2e 62 6f 74 74 6f | 6d 20 2d 20 6c 69 73 74 |le.botto|m - list|
|00004270| 5e 5e 2e 76 69 73 69 62 | 6c 65 2e 74 6f 70 20 2d |^^.visib|le.top -|
|00004280| 20 32 29 2c 20 6c 69 73 | 74 29 3b 0d 09 09 09 65 | 2), lis|t);....e|
|00004290| 6e 64 3b 0d 09 09 09 70 | 61 67 65 44 6f 77 6e 43 |nd;....p|ageDownC|
|000042a0| 68 61 72 3a 20 20 62 65 | 67 69 6e 0d 09 09 09 09 |har: be|gin.....|
|000042b0| 4c 53 63 72 6f 6c 6c 28 | 30 2c 20 28 6c 69 73 74 |LScroll(|0, (list|
|000042c0| 5e 5e 2e 76 69 73 69 62 | 6c 65 2e 62 6f 74 74 6f |^^.visib|le.botto|
|000042d0| 6d 20 2d 20 6c 69 73 74 | 5e 5e 2e 76 69 73 69 62 |m - list|^^.visib|
|000042e0| 6c 65 2e 74 6f 70 20 2d | 20 32 29 2c 20 6c 69 73 |le.top -| 2), lis|
|000042f0| 74 29 3b 0d 09 09 09 65 | 6e 64 3b 0d 09 09 09 74 |t);....e|nd;....t|
|00004300| 61 62 43 68 61 72 3a 20 | 20 62 65 67 69 6e 0d 09 |abChar: | begin..|
|00004310| 09 09 09 69 66 20 42 41 | 4e 44 28 65 72 2e 6d 6f |...if BA|ND(er.mo|
|00004320| 64 69 66 69 65 72 73 2c | 20 73 68 69 66 74 4b 65 |difiers,| shiftKe|
|00004330| 79 29 20 3c 3e 20 30 20 | 74 68 65 6e 20 62 65 67 |y) <> 0 |then beg|
|00004340| 69 6e 0d 09 09 09 09 09 | 66 6f 75 6e 64 20 3a 3d |in......|found :=|
|00004350| 20 66 61 6c 73 65 3b 0d | 09 09 09 09 09 69 66 20 | false;.|.....if |
|00004360| 4c 47 65 74 46 69 72 73 | 74 53 65 6c 65 63 74 69 |LGetFirs|tSelecti|
|00004370| 6f 6e 28 6c 69 73 74 2c | 20 63 2c 20 67 65 74 65 |on(list,| c, gete|
|00004380| 6e 74 72 79 6e 61 6d 65 | 29 20 74 68 65 6e 20 62 |ntryname|) then b|
|00004390| 65 67 69 6e 0d 09 09 09 | 09 09 09 73 20 3a 3d 20 |egin....|...s := |
|000043a0| 67 65 74 65 6e 74 72 79 | 6e 61 6d 65 28 6c 69 73 |getentry|name(lis|
|000043b0| 74 2c 20 63 29 3b 0d 09 | 09 09 09 09 09 69 66 20 |t, c);..|.....if |
|000043c0| 4c 53 65 6c 65 63 74 46 | 69 72 73 74 42 65 66 6f |LSelectF|irstBefo|
|000043d0| 72 65 28 6c 69 73 74 2c | 20 73 2c 20 67 65 74 65 |re(list,| s, gete|
|000043e0| 6e 74 72 79 6e 61 6d 65 | 29 20 74 68 65 6e 20 62 |ntryname|) then b|
|000043f0| 65 67 69 6e 0d 09 09 09 | 09 09 09 09 66 6f 75 6e |egin....|....foun|
|00004400| 64 20 3a 3d 20 74 72 75 | 65 3b 0d 09 09 09 09 09 |d := tru|e;......|
|00004410| 09 65 6e 64 3b 0d 09 09 | 09 09 09 65 6e 64 3b 0d |.end;...|...end;.|
|00004420| 09 09 09 09 09 69 66 20 | 6e 6f 74 20 66 6f 75 6e |.....if |not foun|
|00004430| 64 20 74 68 65 6e 20 62 | 65 67 69 6e 0d 09 09 09 |d then b|egin....|
|00004440| 09 09 09 64 75 6d 6d 79 | 20 3a 3d 20 4c 53 65 6c |...dummy| := LSel|
|00004450| 65 63 74 46 69 72 73 74 | 42 65 66 6f 72 65 28 6c |ectFirst|Before(l|
|00004460| 69 73 74 2c 20 63 68 72 | 28 32 35 35 29 2c 20 67 |ist, chr|(255), g|
|00004470| 65 74 65 6e 74 72 79 6e | 61 6d 65 29 3b 0d 09 09 |etentryn|ame);...|
|00004480| 09 09 09 65 6e 64 3b 0d | 09 09 09 09 65 6e 64 20 |...end;.|....end |
|00004490| 65 6c 73 65 20 62 65 67 | 69 6e 0d 09 09 09 09 09 |else beg|in......|
|000044a0| 69 66 20 6e 6f 74 20 4c | 47 65 74 4c 61 73 74 53 |if not L|GetLastS|
|000044b0| 65 6c 65 63 74 69 6f 6e | 28 6c 69 73 74 2c 20 63 |election|(list, c|
|000044c0| 2c 20 67 65 74 65 6e 74 | 72 79 6e 61 6d 65 29 20 |, getent|ryname) |
|000044d0| 7c 20 6e 6f 74 20 4c 53 | 65 6c 65 63 74 46 69 72 || not LS|electFir|
|000044e0| 73 74 41 66 74 65 72 28 | 6c 69 73 74 2c 20 4c 47 |stAfter(|list, LG|
|000044f0| 65 74 55 6e 69 71 75 65 | 45 6e 74 72 79 4e 61 6d |etUnique|EntryNam|
|00004500| 65 28 6c 69 73 74 2c 20 | 63 2c 20 67 65 74 65 6e |e(list, |c, geten|
|00004510| 74 72 79 6e 61 6d 65 29 | 2c 20 67 65 74 65 6e 74 |tryname)|, getent|
|00004520| 72 79 6e 61 6d 65 2c 20 | 66 61 6c 73 65 29 20 74 |ryname, |false) t|
|00004530| 68 65 6e 20 62 65 67 69 | 6e 0d 09 09 09 09 09 09 |hen begi|n.......|
|00004540| 64 75 6d 6d 79 20 3a 3d | 20 4c 53 65 6c 65 63 74 |dummy :=| LSelect|
|00004550| 46 69 72 73 74 41 66 74 | 65 72 28 6c 69 73 74 2c |FirstAft|er(list,|
|00004560| 20 27 27 2c 20 67 65 74 | 65 6e 74 72 79 6e 61 6d | '', get|entrynam|
|00004570| 65 2c 20 66 61 6c 73 65 | 29 3b 0d 09 09 09 09 09 |e, false|);......|
|00004580| 65 6e 64 3b 0d 09 09 09 | 09 65 6e 64 3b 0d 09 09 |end;....|.end;...|
|00004590| 09 65 6e 64 3b 0d 09 09 | 09 6f 74 68 65 72 77 69 |.end;...|.otherwi|
|000045a0| 73 65 20 62 65 67 69 6e | 0d 09 09 09 09 69 66 20 |se begin|.....if |
|000045b0| 63 68 20 3e 3d 20 27 20 | 27 20 74 68 65 6e 20 62 |ch >= ' |' then b|
|000045c0| 65 67 69 6e 0d 09 09 09 | 09 09 69 66 20 63 75 72 |egin....|..if cur|
|000045d0| 74 69 63 6b 73 20 2d 20 | 74 79 70 65 64 5f 74 69 |ticks - |typed_ti|
|000045e0| 6d 65 20 3e 20 36 30 20 | 74 68 65 6e 20 62 65 67 |me > 60 |then beg|
|000045f0| 69 6e 0d 09 09 09 09 09 | 09 74 79 70 65 64 5f 63 |in......|.typed_c|
|00004600| 68 61 72 73 20 3a 3d 20 | 27 27 3b 0d 09 09 09 09 |hars := |'';.....|
|00004610| 09 65 6e 64 3b 0d 09 09 | 09 09 09 74 79 70 65 64 |.end;...|...typed|
|00004620| 5f 74 69 6d 65 20 3a 3d | 20 63 75 72 74 69 63 6b |_time :=| curtick|
|00004630| 73 3b 0d 09 09 09 09 09 | 74 79 70 65 64 5f 63 68 |s;......|typed_ch|
|00004640| 61 72 73 20 3a 3d 20 63 | 6f 6e 63 61 74 28 74 79 |ars := c|oncat(ty|
|00004650| 70 65 64 5f 63 68 61 72 | 73 2c 20 63 68 29 3b 0d |ped_char|s, ch);.|
|00004660| 09 09 09 09 09 69 66 20 | 6e 6f 74 20 4c 53 65 6c |.....if |not LSel|
|00004670| 65 63 74 46 69 72 73 74 | 41 66 74 65 72 28 6c 69 |ectFirst|After(li|
|00004680| 73 74 2c 20 74 79 70 65 | 64 5f 63 68 61 72 73 2c |st, type|d_chars,|
|00004690| 20 67 65 74 65 6e 74 72 | 79 6e 61 6d 65 2c 20 74 | getentr|yname, t|
|000046a0| 72 75 65 29 20 74 68 65 | 6e 20 62 65 67 69 6e 0d |rue) the|n begin.|
|000046b0| 09 09 09 09 09 09 64 75 | 6d 6d 79 20 3a 3d 20 4c |......du|mmy := L|
|000046c0| 53 65 6c 65 63 74 46 69 | 72 73 74 42 65 66 6f 72 |SelectFi|rstBefor|
|000046d0| 65 28 6c 69 73 74 2c 20 | 63 68 72 28 32 35 35 29 |e(list, |chr(255)|
|000046e0| 2c 20 67 65 74 65 6e 74 | 72 79 6e 61 6d 65 29 3b |, getent|ryname);|
|000046f0| 0d 09 09 09 09 09 65 6e | 64 3b 0d 09 09 09 09 65 |......en|d;.....e|
|00004700| 6e 64 3b 0d 09 09 09 65 | 6e 64 3b 0d 09 09 65 6e |nd;....e|nd;...en|
|00004710| 64 3b 0d 09 65 6e 64 3b | 0d 0d 09 66 75 6e 63 74 |d;..end;|...funct|
|00004720| 69 6f 6e 20 44 65 63 53 | 74 72 20 28 6c 3a 20 6c |ion DecS|tr (l: l|
|00004730| 6f 6e 67 69 6e 74 29 3a | 20 53 74 72 32 35 35 3b |ongint):| Str255;|
|00004740| 0d 09 09 76 61 72 0d 09 | 09 09 73 3a 53 74 72 32 |...var..|..s:Str2|
|00004750| 35 35 3b 0d 09 62 65 67 | 69 6e 0d 09 09 4e 75 6d |55;..beg|in...Num|
|00004760| 54 6f 53 74 72 69 6e 67 | 28 6c 2c 73 29 3b 0d 09 |ToString|(l,s);..|
|00004770| 09 44 65 63 53 74 72 20 | 3a 3d 20 73 3b 0d 09 65 |.DecStr |:= s;..e|
|00004780| 6e 64 3b 20 28 2a 20 44 | 65 63 53 74 72 20 2a 29 |nd; (* D|ecStr *)|
|00004790| 0d 0d 09 66 75 6e 63 74 | 69 6f 6e 20 47 65 74 44 |...funct|ion GetD|
|000047a0| 69 72 4e 61 6d 65 20 28 | 66 73 3a 20 46 53 53 70 |irName (|fs: FSSp|
|000047b0| 65 63 29 3a 20 4f 53 45 | 72 72 3b 0d 09 09 76 61 |ec): OSE|rr;...va|
|000047c0| 72 0d 09 09 09 70 62 3a | 20 43 49 6e 66 6f 50 42 |r....pb:| CInfoPB|
|000047d0| 52 65 63 3b 0d 09 62 65 | 67 69 6e 0d 09 09 70 62 |Rec;..be|gin...pb|
|000047e0| 2e 69 6f 4e 61 6d 65 50 | 74 72 20 3a 3d 20 40 66 |.ioNameP|tr := @f|
|000047f0| 73 2e 6e 61 6d 65 3b 0d | 09 09 70 62 2e 69 6f 56 |s.name;.|..pb.ioV|
|00004800| 52 65 66 4e 75 6d 20 3a | 3d 20 66 73 2e 76 52 65 |RefNum :|= fs.vRe|
|00004810| 66 4e 75 6d 3b 0d 09 09 | 70 62 2e 69 6f 44 69 72 |fNum;...|pb.ioDir|
|00004820| 49 44 20 3a 3d 20 66 73 | 2e 70 61 72 49 44 3b 0d |ID := fs|.parID;.|
|00004830| 09 09 70 62 2e 69 6f 46 | 44 69 72 49 6e 64 65 78 |..pb.ioF|DirIndex|
|00004840| 20 3a 3d 20 2d 31 3b 09 | 7b 2a 20 67 65 74 20 69 | := -1;.|{* get i|
|00004850| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 61 62 6f 75 74 |nformati|on about|
|00004860| 20 69 6f 44 69 72 49 44 | 20 2a 7d 0d 09 09 47 65 | ioDirID| *}...Ge|
|00004870| 74 44 69 72 4e 61 6d 65 | 20 3a 3d 20 50 42 47 65 |tDirName| := PBGe|
|00004880| 74 43 61 74 49 6e 66 6f | 53 79 6e 63 28 40 70 62 |tCatInfo|Sync(@pb|
|00004890| 29 3b 0d 09 65 6e 64 3b | 0d 0d 09 66 75 6e 63 74 |);..end;|...funct|
|000048a0| 69 6f 6e 20 43 6f 70 79 | 46 6f 72 6b 20 28 73 72 |ion Copy|Fork (sr|
|000048b0| 6e 2c 20 64 72 6e 3a 20 | 69 6e 74 65 67 65 72 3b |n, drn: |integer;|
|000048c0| 20 6c 65 6e 3a 20 6c 6f | 6e 67 49 6e 74 29 3a 20 | len: lo|ngInt): |
|000048d0| 4f 53 45 72 72 3b 0d 09 | 09 76 61 72 0d 09 09 09 |OSErr;..|.var....|
|000048e0| 65 72 72 3a 20 4f 53 45 | 72 72 3b 0d 09 09 09 70 |err: OSE|rr;....p|
|000048f0| 3a 20 70 74 72 3b 0d 09 | 09 09 73 69 7a 65 3a 20 |: ptr;..|..size: |
|00004900| 6c 6f 6e 67 49 6e 74 3b | 0d 09 09 09 63 6f 75 6e |longInt;|....coun|
|00004910| 74 3a 20 6c 6f 6e 67 49 | 6e 74 3b 0d 09 62 65 67 |t: longI|nt;..beg|
|00004920| 69 6e 0d 09 09 65 72 72 | 20 3a 3d 20 6e 6f 45 72 |in...err| := noEr|
|00004930| 72 3b 0d 09 09 73 69 7a | 65 20 3a 3d 20 36 35 35 |r;...siz|e := 655|
|00004940| 33 36 3b 0d 09 09 70 20 | 3a 3d 20 6e 69 6c 3b 0d |36;...p |:= nil;.|
|00004950| 09 09 72 65 70 65 61 74 | 0d 09 09 09 70 20 3a 3d |..repeat|....p :=|
|00004960| 20 4e 65 77 50 74 72 28 | 73 69 7a 65 29 3b 0d 09 | NewPtr(|size);..|
|00004970| 09 09 69 66 20 70 20 3c | 3e 20 6e 69 6c 20 74 68 |..if p <|> nil th|
|00004980| 65 6e 20 62 65 67 69 6e | 0d 09 09 09 09 73 69 7a |en begin|.....siz|
|00004990| 65 20 3a 3d 20 73 69 7a | 65 20 64 69 76 20 32 3b |e := siz|e div 2;|
|000049a0| 0d 09 09 09 65 6e 64 3b | 0d 09 09 75 6e 74 69 6c |....end;|...until|
|000049b0| 20 28 70 20 3c 3e 20 6e | 69 6c 29 20 6f 72 20 28 | (p <> n|il) or (|
|000049c0| 73 69 7a 65 20 3c 20 35 | 31 32 29 3b 0d 09 09 69 |size < 5|12);...i|
|000049d0| 66 20 70 20 3d 20 6e 69 | 6c 20 74 68 65 6e 20 62 |f p = ni|l then b|
|000049e0| 65 67 69 6e 0d 09 09 09 | 65 72 72 20 3a 3d 20 6d |egin....|err := m|
|000049f0| 65 6d 46 75 6c 6c 45 72 | 72 3b 0d 09 09 65 6e 64 |emFullEr|r;...end|
|00004a00| 3b 0d 09 09 77 68 69 6c | 65 20 28 65 72 72 20 3d |;...whil|e (err =|
|00004a10| 20 6e 6f 45 72 72 29 20 | 26 20 28 6c 65 6e 20 3e | noErr) |& (len >|
|00004a20| 20 30 29 20 64 6f 20 62 | 65 67 69 6e 0d 09 09 09 | 0) do b|egin....|
|00004a30| 63 6f 75 6e 74 20 3a 3d | 20 73 69 7a 65 3b 0d 09 |count :=| size;..|
|00004a40| 09 09 69 66 20 63 6f 75 | 6e 74 20 3e 20 6c 65 6e |..if cou|nt > len|
|00004a50| 20 74 68 65 6e 20 62 65 | 67 69 6e 0d 09 09 09 09 | then be|gin.....|
|00004a60| 63 6f 75 6e 74 20 3a 3d | 20 6c 65 6e 3b 0d 09 09 |count :=| len;...|
|00004a70| 09 65 6e 64 3b 0d 09 09 | 09 65 72 72 20 3a 3d 20 |.end;...|.err := |
|00004a80| 46 53 52 65 61 64 28 73 | 72 6e 2c 20 63 6f 75 6e |FSRead(s|rn, coun|
|00004a90| 74 2c 20 70 29 3b 0d 09 | 09 09 69 66 20 28 65 72 |t, p);..|..if (er|
|00004aa0| 72 20 3d 20 6e 6f 45 72 | 72 29 20 26 20 28 63 6f |r = noEr|r) & (co|
|00004ab0| 75 6e 74 20 3d 20 30 29 | 20 74 68 65 6e 20 62 65 |unt = 0)| then be|
|00004ac0| 67 69 6e 0d 09 09 09 09 | 65 72 72 20 3a 3d 20 65 |gin.....|err := e|
|00004ad0| 6f 66 45 72 72 3b 0d 09 | 09 09 65 6e 64 3b 0d 09 |ofErr;..|..end;..|
|00004ae0| 09 09 69 66 20 65 72 72 | 20 3d 20 6e 6f 45 72 72 |..if err| = noErr|
|00004af0| 20 74 68 65 6e 20 62 65 | 67 69 6e 0d 09 09 09 09 | then be|gin.....|
|00004b00| 6c 65 6e 20 3a 3d 20 6c | 65 6e 20 2d 20 63 6f 75 |len := l|en - cou|
|00004b10| 6e 74 3b 0d 09 09 09 09 | 65 72 72 20 3a 3d 20 46 |nt;.....|err := F|
|00004b20| 53 57 72 69 74 65 28 64 | 72 6e 2c 20 63 6f 75 6e |SWrite(d|rn, coun|
|00004b30| 74 2c 20 70 29 3b 0d 09 | 09 09 65 6e 64 3b 0d 09 |t, p);..|..end;..|
|00004b40| 09 65 6e 64 3b 0d 09 09 | 69 66 20 70 20 3c 3e 20 |.end;...|if p <> |
|00004b50| 6e 69 6c 20 74 68 65 6e | 20 62 65 67 69 6e 0d 09 |nil then| begin..|
|00004b60| 09 09 44 69 73 70 6f 73 | 65 50 74 72 28 70 29 3b |..Dispos|ePtr(p);|
|00004b70| 0d 09 09 65 6e 64 3b 0d | 09 09 43 6f 70 79 46 6f |...end;.|..CopyFo|
|00004b80| 72 6b 20 3a 3d 20 65 72 | 72 3b 0d 09 65 6e 64 3b |rk := er|r;..end;|
|00004b90| 0d 0d 09 66 75 6e 63 74 | 69 6f 6e 20 43 6f 70 79 |...funct|ion Copy|
|00004ba0| 46 69 6c 65 20 28 73 6f | 75 72 63 65 2c 20 64 65 |File (so|urce, de|
|00004bb0| 73 74 3a 20 46 53 53 70 | 65 63 29 3a 20 4f 53 45 |st: FSSp|ec): OSE|
|00004bc0| 72 72 3b 0d 09 09 76 61 | 72 0d 09 09 09 65 72 72 |rr;...va|r....err|
|00004bd0| 2c 20 6f 65 72 72 2c 20 | 6a 75 6e 6b 3a 20 4f 53 |, oerr, |junk: OS|
|00004be0| 45 72 72 3b 0d 09 09 09 | 70 62 3a 20 43 49 6e 66 |Err;....|pb: CInf|
|00004bf0| 6f 50 42 52 65 63 3b 0d | 09 09 09 73 72 72 6e 2c |oPBRec;.|...srrn,|
|00004c00| 20 73 64 72 6e 2c 20 64 | 72 72 6e 2c 20 64 64 72 | sdrn, d|rrn, ddr|
|00004c10| 6e 3a 20 69 6e 74 65 67 | 65 72 3b 0d 09 62 65 67 |n: integ|er;..beg|
|00004c20| 69 6e 0d 09 09 6a 75 6e | 6b 20 3a 3d 20 48 44 65 |in...jun|k := HDe|
|00004c30| 6c 65 74 65 28 64 65 73 | 74 2e 76 52 65 66 4e 75 |lete(des|t.vRefNu|
|00004c40| 6d 2c 20 64 65 73 74 2e | 70 61 72 49 44 2c 20 64 |m, dest.|parID, d|
|00004c50| 65 73 74 2e 6e 61 6d 65 | 29 3b 0d 09 09 65 72 72 |est.name|);...err|
|00004c60| 20 3a 3d 20 46 53 70 47 | 65 74 43 61 74 49 6e 66 | := FSpG|etCatInf|
|00004c70| 6f 28 73 6f 75 72 63 65 | 2c 20 30 2c 20 70 62 29 |o(source|, 0, pb)|
|00004c80| 3b 0d 09 09 69 66 20 65 | 72 72 20 3d 20 6e 6f 45 |;...if e|rr = noE|
|00004c90| 72 72 20 74 68 65 6e 20 | 62 65 67 69 6e 0d 09 09 |rr then |begin...|
|00004ca0| 09 65 72 72 20 3a 3d 20 | 48 43 72 65 61 74 65 28 |.err := |HCreate(|
|00004cb0| 64 65 73 74 2e 76 52 65 | 66 4e 75 6d 2c 20 64 65 |dest.vRe|fNum, de|
|00004cc0| 73 74 2e 70 61 72 49 44 | 2c 20 64 65 73 74 2e 6e |st.parID|, dest.n|
|00004cd0| 61 6d 65 2c 20 70 62 2e | 69 6f 46 6c 46 6e 64 72 |ame, pb.|ioFlFndr|
|00004ce0| 49 6e 66 6f 2e 66 64 43 | 72 65 61 74 6f 72 2c 20 |Info.fdC|reator, |
|00004cf0| 70 62 2e 69 6f 46 6c 46 | 6e 64 72 49 6e 66 6f 2e |pb.ioFlF|ndrInfo.|
|00004d00| 66 64 54 79 70 65 29 3b | 0d 09 09 09 69 66 20 65 |fdType);|....if e|
|00004d10| 72 72 20 3d 20 6e 6f 45 | 72 72 20 74 68 65 6e 20 |rr = noE|rr then |
|00004d20| 62 65 67 69 6e 0d 09 09 | 09 09 65 72 72 20 3a 3d |begin...|..err :=|
|00004d30| 20 48 4f 70 65 6e 28 64 | 65 73 74 2e 76 52 65 66 | HOpen(d|est.vRef|
|00004d40| 4e 75 6d 2c 20 64 65 73 | 74 2e 70 61 72 49 44 2c |Num, des|t.parID,|
|00004d50| 20 64 65 73 74 2e 6e 61 | 6d 65 2c 20 66 73 57 72 | dest.na|me, fsWr|
|00004d60| 50 65 72 6d 2c 20 64 64 | 72 6e 29 3b 0d 09 09 09 |Perm, dd|rn);....|
|00004d70| 09 69 66 20 65 72 72 20 | 3d 20 6e 6f 45 72 72 20 |.if err |= noErr |
|00004d80| 74 68 65 6e 20 62 65 67 | 69 6e 0d 09 09 09 09 09 |then beg|in......|
|00004d90| 65 72 72 20 3a 3d 20 48 | 4f 70 65 6e 52 46 28 64 |err := H|OpenRF(d|
|00004da0| 65 73 74 2e 76 52 65 66 | 4e 75 6d 2c 20 64 65 73 |est.vRef|Num, des|
|00004db0| 74 2e 70 61 72 49 44 2c | 20 64 65 73 74 2e 6e 61 |t.parID,| dest.na|
|00004dc0| 6d 65 2c 20 66 73 57 72 | 50 65 72 6d 2c 20 64 72 |me, fsWr|Perm, dr|
|00004dd0| 72 6e 29 3b 0d 09 09 09 | 09 09 69 66 20 65 72 72 |rn);....|..if err|
|00004de0| 20 3d 20 6e 6f 45 72 72 | 20 74 68 65 6e 20 62 65 | = noErr| then be|
|00004df0| 67 69 6e 0d 09 09 09 09 | 09 09 65 72 72 20 3a 3d |gin.....|..err :=|
|00004e00| 20 48 4f 70 65 6e 28 73 | 6f 75 72 63 65 2e 76 52 | HOpen(s|ource.vR|
|00004e10| 65 66 4e 75 6d 2c 20 73 | 6f 75 72 63 65 2e 70 61 |efNum, s|ource.pa|
|00004e20| 72 49 44 2c 20 73 6f 75 | 72 63 65 2e 6e 61 6d 65 |rID, sou|rce.name|
|00004e30| 2c 20 66 73 52 64 50 65 | 72 6d 2c 20 73 64 72 6e |, fsRdPe|rm, sdrn|
|00004e40| 29 3b 0d 09 09 09 09 09 | 09 69 66 20 65 72 72 20 |);......|.if err |
|00004e50| 3d 20 6e 6f 45 72 72 20 | 74 68 65 6e 20 62 65 67 |= noErr |then beg|
|00004e60| 69 6e 0d 09 09 09 09 09 | 09 09 65 72 72 20 3a 3d |in......|..err :=|
|00004e70| 20 48 4f 70 65 6e 52 46 | 28 73 6f 75 72 63 65 2e | HOpenRF|(source.|
|00004e80| 76 52 65 66 4e 75 6d 2c | 20 73 6f 75 72 63 65 2e |vRefNum,| source.|
|00004e90| 70 61 72 49 44 2c 20 73 | 6f 75 72 63 65 2e 6e 61 |parID, s|ource.na|
|00004ea0| 6d 65 2c 20 66 73 52 64 | 50 65 72 6d 2c 20 73 72 |me, fsRd|Perm, sr|
|00004eb0| 72 6e 29 3b 0d 09 09 09 | 09 09 09 09 69 66 20 65 |rn);....|....if e|
|00004ec0| 72 72 20 3d 20 6e 6f 45 | 72 72 20 74 68 65 6e 20 |rr = noE|rr then |
|00004ed0| 62 65 67 69 6e 0d 09 09 | 09 09 09 09 09 09 65 72 |begin...|......er|
|00004ee0| 72 20 3a 3d 20 43 6f 70 | 79 46 6f 72 6b 28 73 64 |r := Cop|yFork(sd|
|00004ef0| 72 6e 2c 20 64 64 72 6e | 2c 20 70 62 2e 69 6f 46 |rn, ddrn|, pb.ioF|
|00004f00| 6c 4c 67 4c 65 6e 29 3b | 0d 09 09 09 09 09 09 09 |lLgLen);|........|
|00004f10| 09 69 66 20 65 72 72 20 | 3d 20 6e 6f 45 72 72 20 |.if err |= noErr |
|00004f20| 74 68 65 6e 20 62 65 67 | 69 6e 0d 09 09 09 09 09 |then beg|in......|
|00004f30| 09 09 09 09 65 72 72 20 | 3a 3d 20 43 6f 70 79 46 |....err |:= CopyF|
|00004f40| 6f 72 6b 28 73 72 72 6e | 2c 20 64 72 72 6e 2c 20 |ork(srrn|, drrn, |
|00004f50| 70 62 2e 69 6f 46 6c 52 | 4c 67 4c 65 6e 29 3b 0d |pb.ioFlR|LgLen);.|
|00004f60| 09 09 09 09 09 09 09 09 | 65 6e 64 3b 0d 09 09 09 |........|end;....|
|00004f70| 09 09 09 09 09 6a 75 6e | 6b 20 3a 3d 20 46 53 43 |.....jun|k := FSC|
|00004f80| 6c 6f 73 65 28 73 72 72 | 6e 29 3b 0d 09 09 09 09 |lose(srr|n);.....|
|00004f90| 09 09 09 65 6e 64 3b 0d | 09 09 09 09 09 09 09 6a |...end;.|.......j|
|00004fa0| 75 6e 6b 20 3a 3d 20 46 | 53 43 6c 6f 73 65 28 73 |unk := F|SClose(s|
|00004fb0| 64 72 6e 29 3b 0d 09 09 | 09 09 09 09 65 6e 64 3b |drn);...|....end;|
|00004fc0| 0d 09 09 09 09 09 09 6f | 65 72 72 20 3a 3d 20 46 |.......o|err := F|
|00004fd0| 53 43 6c 6f 73 65 28 64 | 72 72 6e 29 3b 0d 09 09 |SClose(d|rrn);...|
|00004fe0| 09 09 09 09 69 66 20 65 | 72 72 20 3d 20 6e 6f 45 |....if e|rr = noE|
|00004ff0| 72 72 20 74 68 65 6e 20 | 62 65 67 69 6e 0d 09 09 |rr then |begin...|
|00005000| 09 09 09 09 09 65 72 72 | 20 3a 3d 20 6f 65 72 72 |.....err| := oerr|
|00005010| 3b 0d 09 09 09 09 09 09 | 65 6e 64 3b 0d 09 09 09 |;.......|end;....|
|00005020| 09 09 65 6e 64 3b 0d 09 | 09 09 09 09 6f 65 72 72 |..end;..|....oerr|
|00005030| 20 3a 3d 20 46 53 43 6c | 6f 73 65 28 64 64 72 6e | := FSCl|ose(ddrn|
|00005040| 29 3b 0d 09 09 09 09 09 | 69 66 20 65 72 72 20 3d |);......|if err =|
|00005050| 20 6e 6f 45 72 72 20 74 | 68 65 6e 20 62 65 67 69 | noErr t|hen begi|
|00005060| 6e 0d 09 09 09 09 09 09 | 65 72 72 20 3a 3d 20 6f |n.......|err := o|
|00005070| 65 72 72 3b 0d 09 09 09 | 09 09 65 6e 64 3b 0d 09 |err;....|..end;..|
|00005080| 09 09 09 65 6e 64 3b 0d | 09 09 09 65 6e 64 3b 0d |...end;.|...end;.|
|00005090| 09 09 65 6e 64 3b 0d 09 | 09 69 66 20 65 72 72 20 |..end;..|.if err |
|000050a0| 3d 20 6e 6f 45 72 72 20 | 74 68 65 6e 20 62 65 67 |= noErr |then beg|
|000050b0| 69 6e 0d 09 09 09 65 72 | 72 20 3a 3d 20 46 53 70 |in....er|r := FSp|
|000050c0| 53 65 74 43 61 74 49 6e | 66 6f 28 64 65 73 74 2c |SetCatIn|fo(dest,|
|000050d0| 20 70 62 29 3b 0d 09 09 | 65 6e 64 3b 0d 09 09 69 | pb);...|end;...i|
|000050e0| 66 20 65 72 72 20 3c 3e | 20 6e 6f 45 72 72 20 74 |f err <>| noErr t|
|000050f0| 68 65 6e 20 62 65 67 69 | 6e 0d 09 09 09 6a 75 6e |hen begi|n....jun|
|00005100| 6b 20 3a 3d 20 48 44 65 | 6c 65 74 65 28 64 65 73 |k := HDe|lete(des|
|00005110| 74 2e 76 52 65 66 4e 75 | 6d 2c 20 64 65 73 74 2e |t.vRefNu|m, dest.|
|00005120| 70 61 72 49 44 2c 20 64 | 65 73 74 2e 6e 61 6d 65 |parID, d|est.name|
|00005130| 29 3b 0d 09 09 65 6e 64 | 3b 0d 09 09 43 6f 70 79 |);...end|;...Copy|
|00005140| 46 69 6c 65 20 3a 3d 20 | 65 72 72 3b 0d 09 65 6e |File := |err;..en|
|00005150| 64 3b 20 28 2a 20 43 6f | 70 79 46 69 6c 65 20 2a |d; (* Co|pyFile *|
|00005160| 29 0d 0d 09 66 75 6e 63 | 74 69 6f 6e 20 47 65 74 |)...func|tion Get|
|00005170| 4e 61 6d 65 20 28 69 64 | 31 2c 20 69 64 32 3a 20 |Name (id|1, id2: |
|00005180| 69 6e 74 65 67 65 72 29 | 3a 20 73 74 72 32 35 35 |integer)|: str255|
|00005190| 3b 0d 09 09 76 61 72 0d | 09 09 09 73 68 3a 20 73 |;...var.|...sh: s|
|000051a0| 74 72 69 6e 67 48 61 6e | 64 6c 65 3b 0d 09 62 65 |tringHan|dle;..be|
|000051b0| 67 69 6e 0d 09 09 73 68 | 20 3a 3d 20 47 65 74 53 |gin...sh| := GetS|
|000051c0| 74 72 69 6e 67 28 69 64 | 31 29 3b 0d 09 09 69 66 |tring(id|1);...if|
|000051d0| 20 73 68 20 3d 20 6e 69 | 6c 20 74 68 65 6e 0d 09 | sh = ni|l then..|
|000051e0| 09 09 73 68 20 3a 3d 20 | 47 65 74 53 74 72 69 6e |..sh := |GetStrin|
|000051f0| 67 28 69 64 32 29 3b 0d | 09 09 69 66 20 73 68 20 |g(id2);.|..if sh |
|00005200| 3c 3e 20 6e 69 6c 20 74 | 68 65 6e 0d 09 09 09 47 |<> nil t|hen....G|
|00005210| 65 74 4e 61 6d 65 20 3a | 3d 20 73 68 5e 5e 20 7b |etName :|= sh^^ {|
|00005220| 20 44 6f 6e 27 74 20 72 | 65 6c 65 61 73 65 20 69 | Don't r|elease i|
|00005230| 74 2c 20 73 6f 6d 65 6f | 6e 65 20 65 6c 73 65 20 |t, someo|ne else |
|00005240| 6d 61 79 20 62 65 20 75 | 73 69 6e 67 20 69 74 20 |may be u|sing it |
|00005250| 7d 0d 09 09 65 6c 73 65 | 0d 09 09 09 47 65 74 4e |}...else|....GetN|
|00005260| 61 6d 65 20 3a 3d 20 27 | 75 6e 6e 61 6d 65 64 27 |ame := '|unnamed'|
|00005270| 3b 0d 09 65 6e 64 3b 0d | 0d 09 66 75 6e 63 74 69 |;..end;.|..functi|
|00005280| 6f 6e 20 47 65 74 4f 77 | 6e 65 72 4e 61 6d 65 3a |on GetOw|nerName:|
|00005290| 20 73 74 72 32 35 35 3b | 0d 09 62 65 67 69 6e 0d | str255;|..begin.|
|000052a0| 09 09 47 65 74 4f 77 6e | 65 72 4e 61 6d 65 20 3a |..GetOwn|erName :|
|000052b0| 3d 20 47 65 74 4e 61 6d | 65 28 6f 77 6e 65 72 5f |= GetNam|e(owner_|
|000052c0| 69 64 2c 20 6d 61 63 68 | 69 6e 65 5f 69 64 29 3b |id, mach|ine_id);|
|000052d0| 0d 09 65 6e 64 3b 0d 0d | 09 66 75 6e 63 74 69 6f |..end;..|.functio|
|000052e0| 6e 20 47 65 74 4d 61 63 | 68 69 6e 65 4e 61 6d 65 |n GetMac|hineName|
|000052f0| 3a 20 73 74 72 32 35 35 | 3b 0d 09 62 65 67 69 6e |: str255|;..begin|
|00005300| 0d 09 09 47 65 74 4d 61 | 63 68 69 6e 65 4e 61 6d |...GetMa|chineNam|
|00005310| 65 20 3a 3d 20 47 65 74 | 4e 61 6d 65 28 6d 61 63 |e := Get|Name(mac|
|00005320| 68 69 6e 65 5f 69 64 2c | 20 6f 77 6e 65 72 5f 69 |hine_id,| owner_i|
|00005330| 64 29 3b 0d 09 65 6e 64 | 3b 0d 0d 09 70 72 6f 63 |d);..end|;...proc|
|00005340| 65 64 75 72 65 20 53 61 | 66 65 41 70 70 65 6e 64 |edure Sa|feAppend|
|00005350| 4d 65 6e 75 20 28 6d 68 | 3a 20 4d 65 6e 75 48 61 |Menu (mh|: MenuHa|
|00005360| 6e 64 6c 65 3b 20 74 65 | 78 74 3a 20 73 74 72 32 |ndle; te|xt: str2|
|00005370| 35 35 29 3b 0d 09 62 65 | 67 69 6e 0d 09 09 41 70 |55);..be|gin...Ap|
|00005380| 70 65 6e 64 4d 65 6e 75 | 28 6d 68 2c 20 27 66 72 |pendMenu|(mh, 'fr|
|00005390| 65 64 27 29 3b 0d 09 09 | 53 65 74 4d 65 6e 75 49 |ed');...|SetMenuI|
|000053a0| 74 65 6d 54 65 78 74 28 | 6d 68 2c 20 43 6f 75 6e |temText(|mh, Coun|
|000053b0| 74 4d 49 74 65 6d 73 28 | 6d 68 29 2c 20 74 65 78 |tMItems(|mh), tex|
|000053c0| 74 29 3b 0d 09 65 6e 64 | 3b 0d 0d 09 66 75 6e 63 |t);..end|;...func|
|000053d0| 74 69 6f 6e 20 4e 65 77 | 4c 6f 6f 6b 75 70 45 72 |tion New|LookupEr|
|000053e0| 72 6f 72 28 4e 65 72 73 | 49 44 20 3a 20 69 6e 74 |ror(Ners|ID : int|
|000053f0| 65 67 65 72 3b 20 65 72 | 72 6e 75 6d 20 3a 20 4f |eger; er|rnum : O|
|00005400| 53 53 74 61 74 75 73 29 | 20 3a 20 53 74 72 32 35 |SStatus)| : Str25|
|00005410| 35 3b 0d 09 09 76 61 72 | 0d 09 09 09 72 65 73 75 |5;...var|....resu|
|00005420| 6c 74 20 3a 20 53 74 72 | 32 35 35 3b 0d 09 09 09 |lt : Str|255;....|
|00005430| 65 72 72 68 20 3a 20 48 | 61 6e 64 6c 65 3b 0d 09 |errh : H|andle;..|
|00005440| 09 09 73 20 3a 20 53 49 | 6e 74 38 3b 0d 09 09 09 |..s : SI|nt8;....|
|00005450| 63 61 6e 64 69 64 61 74 | 65 5f 65 72 72 6e 75 6d |candidat|e_errnum|
|00005460| 20 3a 20 6c 6f 6e 67 69 | 6e 74 3b 0d 09 09 09 64 | : longi|nt;....d|
|00005470| 61 74 61 5f 70 74 72 20 | 3a 20 42 69 67 42 75 66 |ata_ptr |: BigBuf|
|00005480| 66 65 72 50 74 72 3b 0d | 09 09 09 6e 64 78 20 3a |ferPtr;.|...ndx :|
|00005490| 20 6c 6f 6e 67 69 6e 74 | 3b 0d 09 09 09 6d 61 78 | longint|;....max|
|000054a0| 5f 6e 64 78 20 3a 20 6c | 6f 6e 67 69 6e 74 3b 0d |_ndx : l|ongint;.|
|000054b0| 09 09 09 66 6f 75 6e 64 | 20 3a 20 42 6f 6f 6c 65 |...found| : Boole|
|000054c0| 61 6e 3b 0d 09 62 65 67 | 69 6e 0d 09 09 72 65 73 |an;..beg|in...res|
|000054d0| 75 6c 74 20 3a 3d 20 27 | 27 3b 0d 09 09 65 72 72 |ult := '|';...err|
|000054e0| 68 20 3a 3d 20 47 65 74 | 52 65 73 6f 75 72 63 65 |h := Get|Resource|
|000054f0| 28 27 4e 65 72 73 27 2c | 20 4e 65 72 73 49 44 29 |('Ners',| NersID)|
|00005500| 3b 0d 09 09 69 66 20 65 | 72 72 68 20 3c 3e 20 6e |;...if e|rrh <> n|
|00005510| 69 6c 20 74 68 65 6e 20 | 62 65 67 69 6e 0d 09 09 |il then |begin...|
|00005520| 09 73 20 3a 3d 20 48 47 | 65 74 53 74 61 74 65 28 |.s := HG|etState(|
|00005530| 65 72 72 68 29 3b 0d 09 | 09 09 48 4c 6f 63 6b 28 |errh);..|..HLock(|
|00005540| 65 72 72 68 29 3b 0d 09 | 09 09 64 61 74 61 5f 70 |errh);..|..data_p|
|00005550| 74 72 20 3a 3d 20 42 69 | 67 42 75 66 66 65 72 50 |tr := Bi|gBufferP|
|00005560| 74 72 28 65 72 72 68 5e | 29 3b 0d 09 09 09 0d 09 |tr(errh^|);......|
|00005570| 09 09 6e 64 78 20 3a 3d | 20 30 3b 0d 09 09 09 6d |..ndx :=| 0;....m|
|00005580| 61 78 5f 6e 64 78 20 3a | 3d 20 47 65 74 48 61 6e |ax_ndx :|= GetHan|
|00005590| 64 6c 65 53 69 7a 65 28 | 65 72 72 68 29 3b 0d 09 |dleSize(|errh);..|
|000055a0| 09 09 66 6f 75 6e 64 20 | 3a 3d 20 66 61 6c 73 65 |..found |:= false|
|000055b0| 3b 0d 09 09 09 28 2a 20 | 4c 6f 6f 70 20 74 68 72 |;....(* |Loop thr|
|000055c0| 6f 75 67 68 20 74 68 65 | 20 72 65 73 6f 75 72 63 |ough the| resourc|
|000055d0| 65 20 6c 6f 6f 6b 69 6e | 67 20 66 6f 72 20 61 20 |e lookin|g for a |
|000055e0| 6d 61 74 63 68 2e 20 2a | 29 0d 09 09 09 77 68 69 |match. *|)....whi|
|000055f0| 6c 65 20 28 6e 64 78 20 | 3c 20 6d 61 78 5f 6e 64 |le (ndx |< max_nd|
|00005600| 78 29 20 61 6e 64 20 6e | 6f 74 20 66 6f 75 6e 64 |x) and n|ot found|
|00005610| 20 64 6f 20 62 65 67 69 | 6e 0d 09 09 09 09 28 2a | do begi|n.....(*|
|00005620| 20 45 78 74 72 61 63 74 | 20 74 68 65 20 65 72 72 | Extract| the err|
|00005630| 6f 72 20 6e 75 6d 62 65 | 72 2e 0d 09 09 09 09 09 |or numbe|r.......|
|00005640| 20 49 20 75 73 65 20 42 | 6c 6f 63 6b 4d 6f 76 65 | I use B|lockMove|
|00005650| 20 68 65 72 65 20 62 65 | 63 61 75 73 65 20 74 68 | here be|cause th|
|00005660| 65 20 64 61 74 61 20 6d | 61 79 20 6e 6f 74 20 62 |e data m|ay not b|
|00005670| 65 20 77 6f 72 64 20 61 | 6c 69 67 6e 65 64 2c 20 |e word a|ligned, |
|00005680| 61 6e 64 0d 09 09 09 09 | 09 09 6f 72 69 67 69 6e |and.....|..origin|
|00005690| 61 6c 20 36 38 4b 73 20 | 77 69 6c 6c 20 74 61 6b |al 68Ks |will tak|
|000056a0| 65 20 61 6e 20 41 64 64 | 72 65 73 73 20 45 72 72 |e an Add|ress Err|
|000056b0| 6f 72 20 69 66 20 49 20 | 61 74 74 65 6d 70 74 20 |or if I |attempt |
|000056c0| 74 6f 20 6d 6f 76 65 20 | 61 6e 0d 09 09 09 09 09 |to move |an......|
|000056d0| 09 75 6e 61 6c 69 67 6e | 65 64 20 6c 6f 6e 67 69 |.unalign|ed longi|
|000056e0| 6e 74 2e 0d 09 09 09 09 | 2a 29 0d 09 09 09 09 42 |nt......|*).....B|
|000056f0| 6c 6f 63 6b 4d 6f 76 65 | 44 61 74 61 28 40 64 61 |lockMove|Data(@da|
|00005700| 74 61 5f 70 74 72 5e 5b | 6e 64 78 5d 2c 20 40 63 |ta_ptr^[|ndx], @c|
|00005710| 61 6e 64 69 64 61 74 65 | 5f 65 72 72 6e 75 6d 2c |andidate|_errnum,|
|00005720| 20 73 69 7a 65 6f 66 28 | 6c 6f 6e 67 69 6e 74 29 | sizeof(|longint)|
|00005730| 29 3b 0d 09 09 09 09 6e | 64 78 20 3a 3d 20 6e 64 |);.....n|dx := nd|
|00005740| 78 20 2b 20 73 69 7a 65 | 6f 66 28 6c 6f 6e 67 69 |x + size|of(longi|
|00005750| 6e 74 29 3b 0d 09 09 09 | 09 28 2a 20 45 78 74 72 |nt);....|.(* Extr|
|00005760| 61 63 74 20 74 68 65 20 | 65 72 72 6f 72 20 73 74 |act the |error st|
|00005770| 72 69 6e 67 2e 20 2a 29 | 0d 09 09 09 09 42 6c 6f |ring. *)|.....Blo|
|00005780| 63 6b 4d 6f 76 65 44 61 | 74 61 28 40 64 61 74 61 |ckMoveDa|ta(@data|
|00005790| 5f 70 74 72 5e 5b 6e 64 | 78 5d 2c 20 40 72 65 73 |_ptr^[nd|x], @res|
|000057a0| 75 6c 74 2c 20 64 61 74 | 61 5f 70 74 72 5e 5b 6e |ult, dat|a_ptr^[n|
|000057b0| 64 78 5d 20 2b 20 31 29 | 3b 0d 09 09 09 09 6e 64 |dx] + 1)|;.....nd|
|000057c0| 78 20 3a 3d 20 6e 64 78 | 20 2b 20 64 61 74 61 5f |x := ndx| + data_|
|000057d0| 70 74 72 5e 5b 6e 64 78 | 5d 20 2b 20 31 3b 0d 09 |ptr^[ndx|] + 1;..|
|000057e0| 09 09 09 66 6f 75 6e 64 | 20 3a 3d 20 28 63 61 6e |...found| := (can|
|000057f0| 64 69 64 61 74 65 5f 65 | 72 72 6e 75 6d 20 3d 20 |didate_e|rrnum = |
|00005800| 65 72 72 6e 75 6d 29 20 | 6f 72 20 28 63 61 6e 64 |errnum) |or (cand|
|00005810| 69 64 61 74 65 5f 65 72 | 72 6e 75 6d 20 3d 20 30 |idate_er|rnum = 0|
|00005820| 29 0d 09 09 09 65 6e 64 | 3b 20 28 2a 20 77 68 69 |)....end|; (* whi|
|00005830| 6c 65 20 2a 29 0d 09 09 | 09 0d 09 09 09 69 66 20 |le *)...|.....if |
|00005840| 6e 6f 74 20 66 6f 75 6e | 64 20 74 68 65 6e 20 62 |not foun|d then b|
|00005850| 65 67 69 6e 0d 09 09 09 | 09 72 65 73 75 6c 74 20 |egin....|.result |
|00005860| 3a 3d 20 27 27 3b 0d 09 | 09 09 65 6e 64 3b 20 28 |:= '';..|..end; (|
|00005870| 2a 20 69 66 20 2a 29 0d | 09 09 09 0d 09 09 09 48 |* if *).|.......H|
|00005880| 53 65 74 53 74 61 74 65 | 28 65 72 72 68 2c 20 73 |SetState|(errh, s|
|00005890| 29 3b 0d 09 09 65 6e 64 | 3b 20 28 2a 20 69 66 20 |);...end|; (* if |
|000058a0| 2a 29 0d 09 09 4e 65 77 | 4c 6f 6f 6b 75 70 45 72 |*)...New|LookupEr|
|000058b0| 72 6f 72 20 3a 3d 20 72 | 65 73 75 6c 74 3b 0d 09 |ror := r|esult;..|
|000058c0| 65 6e 64 3b 20 28 2a 20 | 4e 65 77 4c 6f 6f 6b 75 |end; (* |NewLooku|
|000058d0| 70 45 72 72 6f 72 20 2a | 29 0d 0d 65 6e 64 2e 0d |pError *|)..end..|
|000058e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005900| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00005910| 2d 39 31 7c 0d 54 45 50 | 74 72 3d 5e 54 45 52 65 |-91|.TEP|tr=^TERe|
|00005920| 63 20 c4 54 65 78 74 45 | 64 69 74 7c 0d 54 45 52 |c .TextE|dit|.TER|
|00005930| 0c 49 43 4d 69 73 63 53 | 75 62 73 2e 70 03 02 00 |.ICMiscS|ubs.p...|
|00005940| 00 00 54 45 58 54 43 57 | 49 45 00 00 00 9c 01 00 |..TEXTCW|IE......|
|00005950| 00 00 54 45 58 54 43 57 | 49 45 00 00 00 9c 01 00 |..TEXTCW|IE......|
|00005960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005970| 00 00 aa 8d 7a c0 00 00 | 58 60 00 00 01 9a 68 74 |....z...|X`....ht|
|00005980| 3a 69 6e 74 65 67 65 72 | 3b 0d 66 6f 6e 74 41 73 |:integer|;.fontAs|
|00005990| 63 65 6e 74 3a 69 6e 74 | 65 67 65 72 3b 0d 73 65 |cent:int|eger;.se|
|000059a0| 6c 50 6f 69 6e 74 3a 50 | 6f 69 6e 74 3b 0d 73 65 |lPoint:P|oint;.se|
|000059b0| 6c 53 74 61 72 74 3a 69 | 6e 74 65 67 65 72 3b 0d |lStart:i|nteger;.|
|000059c0| 73 65 6c 45 6e 64 3a 69 | 6e 74 65 67 65 72 3b 7c |selEnd:i|nteger;||
|000059d0| 0d 54 45 52 65 63 3d 52 | 45 43 4f 52 44 20 c4 54 |.TERec=R|ECORD .T|
|000059e0| 65 78 74 45 64 69 74 20 | 5b 32 2f 34 5d 0d 61 63 |extEdit |[2/4].ac|
|000059f0| 74 69 76 65 3a 69 6e 74 | 65 67 65 72 3b 0d 77 6f |tive:int|eger;.wo|
|00005a00| 00 00 00 48 00 09 47 65 | 6e 65 76 61 00 00 00 00 |...H..Ge|neva....|
|00005a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a20| 00 00 00 00 00 00 00 03 | 00 02 00 3e 00 04 01 cd |........|...>....|
|00005a30| 02 63 00 3e 00 04 01 cd | 02 63 ae 16 b6 36 00 00 |.c.>....|.c...6..|
|00005a40| 03 fc 00 00 03 fc 00 00 | 01 f9 01 00 00 00 00 04 |........|........|
|00005a50| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00005a60| 00 00 00 46 00 5c be d4 | 13 1a 00 00 00 1c 00 46 |...F.\..|.......F|
|00005a70| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00005a80| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00005a90| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00005aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+